Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 71281 invoked by uid 500); 14 Dec 2002 05:46:59 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 71270 invoked from network); 14 Dec 2002 05:46:59 -0000 Message-ID: <3DFAC5B1.3060600@verizon.net> Date: Fri, 13 Dec 2002 21:46:25 -0800 From: Christopher Oliver User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [Flow] Going back and forth with continuations References: <3DFA0863.5070009@cbim.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at out001.verizon.net from [4.46.80.164] at Fri, 13 Dec 2002 23:47:09 -0600 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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(" + + ")". > > > 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