7 Replies Latest reply on Aug 2, 2007 5:08 PM by Art Jones

    Client-side Seam remoting calls from a static web page outsi

    Art Jones Newbie

      I'd like to embed client-side Seam remoting calls on a static web page outside of my
      Seam application.

      I have all the code for the "Hello World" Remoting sample application working fine.

      All the Seam remoting calls work properly when the page that serves it comes
      from within the application.

      For example, the client-side remoting code works when it's on this page:

      But the same client-side remoting code does not work when the page
      that serves it is outside the application.

      For example:

      I get the following error message:
      "There was an error processing your request. Error code: 404

      Note: I've already changed the relative references on the client side code to properly access
      the required remoting Javascript resources. In other words:

      On the page within the application:

      <script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>
      <script type="text/javascript" src="seam/resource/remoting/interface.js?helloAction"></script>

      On the static page outside the application:
      <script type="text/javascript" src="http://localhost:8080/a/seam/resource/remoting/resource/remote.js"></script>
      <script type="text/javascript" src="http://localhost:8080/a/seam/resource/remoting/interface.js?helloAction"></script>

      Is there anything else I need to configure to make this work? Is this possible?

      Thanks for your help.