[jboss-user] [JBoss Seam] - Getting Conversation Id in javascript. Is there a better way

nicola9000 do-not-reply at jboss.com
Sun Sep 10 13:12:28 EDT 2006


Is there e better way to get conversation ID ?
I need it for remoting calls


  | var conversationId    = -1;
  | 
  | window.onload=function()
  | {
  | }
  | 
  | /* Check conversation id */
  | function checkConversation()
  | {
  |   if (  conversationId == null || conversationId == -1 )
  |   {
  |       span = document.getElementById( "conversationIdSpan" );
  |       if ( span == null ) return;
  |       obj  = span.childNodes[0];
  |       if ( obj == null ) return;
  |       obj  = obj.childNodes[0];
  |       if ( obj == null ) return;
  |       conversationId = obj.nodeValue;
  |   }    
  | }
  | 


  | <div class="Hidden">					   
  | 	<span id="conversationIdSpan">
  | 		<h:outputText value="#{conversation.id}" id="conversationIdHidden"/>     					
  | 	</span>
  | </div>
  | 

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

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



More information about the jboss-user mailing list