cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angeloimm" <>
Subject Please Help me... cocoon.session
Date Fri, 19 Nov 2004 12:09:34 GMT
Hi all... i have a problem; i must use the sessionId in the flowScript; i'll try to be clearer...
i have two function in the flowscript; one of these two functionmust pass data to the other
function... i want to use a Hashtable and the session id for setting this data in a hashtable
that i'll put in the cocoon.context objec..... wekk in my how can i pass the session id from
a form to another form? I'ld like to do a similar thing in my flowscript:

var sessionId = cocoon.session.getId();
var NIBstep3Form = new Form("forms/NIBstep3.xml");
NIBstep3Form.showForm( "NIBstep3.jx",{ "sessionId":sessionId });

while in my NIBstep3.jx file i can use this thing:


How can i do a similar thing? If i do:

NIBstep3Form.showForm( "NIBstep3.jx",{ "sessionId":sessionId });

i have this error:

uncaught JavaScript exception: at NIB (file:/C:/jboss-3.2.5/server/default/deploy/cocoon.war/prototipi/ContentAuthor/flow/InfoBeanManager.js,
Line 104) at (resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js, Line 118) at
(resource://org/apache/cocoon/components/flow/javascript/fom/fom_system.js, Line 24): Expected
a function instead of: [object Object]

If i do so:

NIBstep3Form.showForm( "NIBstep3.jxform", function sessionId(){ 
														var sessionId = cocoon.session.getId(); 
														print( "La sessionId รจ: " +sessionId );
														return sessionId;

In this case i have no error... but in the NIBstep3.jx how can i have the sessionId?

Thanks to all.....................

Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione. 
Abbonati subito su 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message