cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@mrigitech.com>
Subject RE: [flow] global variable values lost between invocations
Date Thu, 20 Jan 2005 04:52:11 GMT
Hi Mark,

I'm running 2.1.6.  I wrote a simple test case in an independent flowscript
and that works
fine, didn't need to call cocoon.session as you suggested.

In other ideas?

Cheers
Adam

> -----Original Message-----
> From: Mark Lundquist [mailto:ml@wrinkledog.com]
> Sent: Thursday, 20 January 2005 5:47 p.m.
> To: users@cocoon.apache.org
> Subject: Re: [flow] global variable values lost between invocations
>
>
>
> On Jan 19, 2005, at 8:31 PM, Adam Ratcliffe wrote:
>
> > I have a flowscript where I set the value of a global variable, call
> > cocoon.session to create a session, but find
> > that it's value is undefined when I next invoke a top-level function
> > in the script.
> >  
> > An excerpt from the script where the variable's value is set is:
> >  
> >     var mapContext;
> >     ....
> >     function createContext() {
> >         mapContext = new MapContext();
> >
> >         var session = cocoon.session;
>
> What version of Cocoon are you running?  A session is automatically
> created when the global variable is declared, you don't have to
> reference cocoon.session anymore... but that might be new in 2.1.6...
>
> —ml—
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message