0 Replies Latest reply on Jun 3, 2009 11:16 PM by Zarar Siddiqi

    Seam Remoting - Callback function not getting called

    Zarar Siddiqi Newbie
      I just tested a simple remoting call with version 2.1.2.CR2 and it appears the following issue still persists:

      https://jira.jboss.org/jira/browse/JBSEAM-3721

      The component method gets executed successfully but I don't receive a successful response. 


      Here's my component code:



      @Name("userAction")
      public class UserAction extends BaseAction {
          @WebRemote
          public String sayHello(String stuff) {
              System.out.println("UserAction.sayHello");
              return "Hi " + stuff;
          }
      }

      Here's my javascript code:

      <s:remote include="userAction"/>

      function sayHello() {
          Seam.Component.getInstance("userAction").sayHello('bob', sayHelloCallback);
        }

        function sayHelloCallback(result) {
          alert(result);
        }


      Any ideas?