cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: [Flow] Going back and forth with continuations
Date Sat, 14 Dec 2002 05:46:25 GMT
Ugo Cei wrote:

> I've tried to implement this use case in a flowscript like the following:
>
> function foobar() {
>   // Note the use of the "new style" function names
>   sendPageAndWait("showform", {});
>   // Collect request parameters here
>   sendPageAndWait("askforconfirmation", { /* ... field values ... */ });
>   sendPage("thankyou", {});
> }
>
> In the initial form and the confirmation page, I use forms with an 
> action of "kont(" + <jpath:continuation/> + ")".
>
>
> Anyway, that's not a big issue. The big issue is that it does not seem 
> possible to use a continuation to go back to the first form. My 
> understanding is that the first continuation is created, so to say, 
> *after* the first "sendPageAndWait", so there's no state saved before 
> the first form is shown.
>
In this case to go back to the beginning you don't need a continuation. 
You can just call the function again.


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


Mime
View raw message