Christopher Oliver dijo:
> No, don't do that.  The current request will not have that attribute set
> until you call cocoon.sendPage*(). It can never be used in a flow script.
>
> If you want to share data between a sequence of pages, use
> sendPageAndWait();
>
> function firstPage() {
>      var anIntegerId = 100;
>      cocoon.sendPageAndWait("nextPage", {anIntegerId: anIntegerId});
>      // next page processing goes here
>      // you can still access anIntegerId
> }
>
> otherwise use a global variable (which is equivalent to a session
> attribute):
>
> var anIntegerId = 0;
>
> function firstPage() {
>      anIntegerId = 100;
>      cocoon.sendPage("nextPage", {anIntegerId: anIntegerId});
> }
>
> function nextPageProcessing() {
>     print(anIntegerId);  // prints 100
>     ...
> }

Thanks for the explanation Chris. :-DD

In the "otherwise" sample then we can simply write:

cocoon.sendPage("nextPage");

Is this OK. Right?

Best Regards,

Antonio Gallardo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to