Thanks for the quick reply, Ugo. Bit of a head-smacking-moment for me looking at your flowscript suggestion! "Of course!" :)
Regards, Thomas N
Ugo Cei wrote:
Thomas Kjeldahl Nilsson wrote:
1: Do active continuations "time out"? In my project we have quite a few pages where we in the flow do a sendPageAndWait(), then present a page where the user is able to go elsewhere thus not letting the current continuation finish (by calling sendPage()).
Yes, they do expire after a timeout that is set in cocoon.xconf (search for the <continuations-manager> element).
What happens with this unactive continuation?
It triggers an invalid continuation exception if invoked.
2: In my app, when the user does something wrong when submitting a form, I want to restart the function, and present the first page with an error msg in at the top of the page. How best to do this?
var error = null; while true() { cocoon.sendPageAndWait("view", { "error" : error }); error = validateUserInput(); if (error == null) break; }
Ugo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
