This content has been marked as final.
Show 4 replies
-
1. Re: Getting Conversation Id in javascript. Is there a better
shane.bryzak Sep 10, 2006 7:17 PM (in response to nicola9000)<script type="text/javascript"> Seam.Remoting.getContext().setConversationId(#{conversation.id}); </script>
-
2. Re: Getting Conversation Id in javascript. Is there a better
nicola9000 Sep 11, 2006 1:00 PM (in response to nicola9000)"sbryzak2" wrote:
<script type="text/javascript"> Seam.Remoting.getContext().setConversationId(#{conversation.id}); </script>
:-) tk -
3. Re: Getting Conversation Id in javascript. Is there a better
fhh Sep 12, 2006 4:22 AM (in response to nicola9000)Im not an expert when it comes to seams remoting fuctionality but I think this:
<script type="text/javascript"> Seam.Remoting.getContext().setConversationId(#{conversation.id}); </script>
has the disadvantage of doing an extra round trip to the server which is quite unnecessary.
Would it not be simpler to use:function checkConversation() { conversationId == '#{conversation.id}'; if (conversationId == '') conversationID = null; }
I have not checked whether it actually works but I think it should.
Regards
fhh -
4. Re: Getting Conversation Id in javascript. Is there a better
shane.bryzak Sep 12, 2006 6:31 AM (in response to nicola9000)There is no extra round trip to the server, this line merely sets a Javascript variable.