Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 82468 invoked from network); 28 Jun 2004 06:59:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jun 2004 06:59:31 -0000 Received: (qmail 56818 invoked by uid 500); 28 Jun 2004 06:59:28 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 56777 invoked by uid 500); 28 Jun 2004 06:59:27 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 56731 invoked by uid 99); 28 Jun 2004 06:59:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [213.188.134.18] (HELO mailengine2.web2000.activeisp.com) (213.188.134.18) by apache.org (qpsmtpd/0.27.1) with ESMTP; Sun, 27 Jun 2004 23:59:25 -0700 Received: from marcello.no (unverified [80.203.180.118]) by webmail.activeisp.com (Rockliffe SMTPRA 5.3.11) with ESMTP id for ; Mon, 28 Jun 2004 08:59:42 +0200 Message-ID: <40DFC1B5.4030609@marcello.no> Date: Mon, 28 Jun 2004 08:59:01 +0200 From: Thomas Kjeldahl Nilsson Reply-To: tn@marcello.no Organization: Marcello Consulting AS User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Some questions about continuations! References: <40C99409.9050709@marcello.no> <40CAD803.7080600@gmx.de> <40CD487E.3050201@marcello.no> In-Reply-To: <40CD487E.3050201@marcello.no> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, A few (possibly stupid) questions on continuations: 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()). What happens with this unactive continuation? 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? ---- function doStuff(){ // Prepare page cocoon.sendPageAndWait("first.xml"); // Process form submitted by user: //IF (any errors) THEN restart doStuff(), show "first.xml" with errorMsg // ELSE cocoon.sendPageAndWait("second.xml"); } ---- regards, Thomas Kjeldahl Nilsson Oslo, Norway --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org