2 Replies Latest reply on Jul 16, 2010 9:46 AM by christine1

    remoting in 2.2

    christine1
      I want to use remoting, I use Seam 2.2.0 in Jboss AS. I follow the example at
      http://docs.jboss.org/seam/2.2.0.GA/en-US/html/remoting.html#d0e22581, but I get an error in the javascript "Seam not defined". Apparently, the remote.js is not found.
      I have the lines
      <script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>
      <script type="text/javascript" src="seam/resource/remoting/interface.js?entrepreneurExtendProfileAction"></script>
      in my xhtml source. What do I do to properly include remote.js and interface.js?

      Also, after putting the remoting jar on the classpath, the WebRemote annotation works, but the @Local annotation doesn't. Do I need an additional jar for the @Local annotation?
        • 1. Re: remoting in 2.2
          babazs

          Instead of including scripts try to use the s:remote tag. If you use EJB's the @WebRemote should be added to the local interface else to the component method.


          The jboss-seam-remoting.jar in the WEB-INF/lib should be enough for good working

          • 2. Re: remoting in 2.2
            christine1

            Thanks. I use a4j actionparam to provide parameters to the modal panel, which works, only the parameters only get inserted after the modal panel gets displayed. How can I make sure that the actionparams get set before the modal panel fully displays?