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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user