This content has been marked as final.
Show 3 replies
-
1. Re: Joining an existing conversation
gavin.king Jul 18, 2006 4:04 PM (in response to bluetrade)I can't answer unless you tell me what "kind" of AJAX request it is. The JSF servlet? Your own servlet? Some AJAX framework?
-
2. Re: Joining an existing conversation
knaas Jul 18, 2006 4:06 PM (in response to bluetrade)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!"/>
-
3. Re: Joining an existing conversation
bluetrade Jul 18, 2006 6:18 PM (in response to bluetrade)Hi,
Thanks, the setConversationId(conversationId) worked. I was using a selfmade servlet.
Thanks.
Flo