[jboss-user] [JBoss Seam] - Re: Joining an existing conversation

knaas do-not-reply at jboss.com
Tue Jul 18 16:06:58 EDT 2006


http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/remoting.html#d0e4175

For instance,


  | function callMyRemoteMethod(conversationId, otherArg)
  | {
  |     Seam.Remoting.getContext().setConversationId(conversationId);
  |     var callback = function() { alert('remote method done!'); };
  | 
  |     var myComponent = Seam.Component.getInstance('MyComponent');
  |     myComponent.myRemoteMethod(otherArg, callback);
  | }
  | 

And then in your page, make sure to call the javascript method with the conversationId.

For instance,


  |     <h:commandButton onclick="javascript:callMyRemoteMethod(#{conversation.id}, 'FOO'); return false;" value="Click Me!"/>
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958946#3958946

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958946



More information about the jboss-user mailing list