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