Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 27243 invoked from network); 11 Feb 2004 21:03:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Feb 2004 21:03:49 -0000 Received: (qmail 73389 invoked by uid 500); 11 Feb 2004 21:03:23 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 73330 invoked by uid 500); 11 Feb 2004 21:03:22 -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 73300 invoked from network); 11 Feb 2004 21:03:22 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 11 Feb 2004 21:03:22 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ar1W1-0002Dw-00 for ; Wed, 11 Feb 2004 22:03:27 +0100 Received: from d213-103-225-87.cust.tele2.fr ([213.103.225.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed Feb 11 21:03:27 2004 Received: from sylvain by d213-103-225-87.cust.tele2.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed Feb 11 21:03:27 2004 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Sylvain Wallez Subject: Re: Need some help w/ Woody Template Date: Wed, 11 Feb 2004 22:03:22 +0100 Lines: 50 Message-ID: References: <1A9380EA-5BB5-11D8-B3DF-000A95908E0E@wrinkledog.com> <1076489663.2995.104.camel@yum.ot> <370EA99C-5CB1-11D8-95E3-000A95908E0E@wrinkledog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d213-103-225-87.cust.tele2.fr User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: fr, en, en-us In-Reply-To: <370EA99C-5CB1-11D8-95E3-000A95908E0E@wrinkledog.com> Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mark Lundquist wrote: > > On Feb 11, 2004, at 12:54 AM, Bruno Dumon wrote: > >> That's because the request is an object that lives only for the >> duration of one request. Thus if you put something in a request >> attribute, it only remains there for the current request. > > > OK � I figured that's what must be going on. > > I'm new to Cocoon continuations and I had a bad think goin'. I > thought "well, the request is part of the flow context, and a > continuation ought to close over the entire context including the > request". But of course not... it's not that there's one request that > gets suspended and resumed, it's that you have one request that > inaugurates the flow, and another request(s) that resume it. Yeah I > get it :-) The simple rule is that only local variables of the script function are part of the continuation. Every object you access through the "cocoon" object is not part of the continuation and is likely to change when you cross a cocoon.sendPageAndWait(). >> The whole woody-flowscript integration is quite focussed on >> displaying one form at a time, so you're a bit on your own if you >> want to display multiple forms... (not that it's impossible, but >> you'll have to write some more code by your own. > > > Right, I kind of saw that coming :-) I figure all the pieces are > there in woody2.js, I'll just have to put them together differently. You can make use of the upcoming "bookmark continuations" in the upcoming 2.1.4 release. These are continuations that are not related to a sendPage and can therefore be used to go back at any particular location in your script. This allows to easily handle a "previous" button in a wizard. Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org