Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 18050 invoked by uid 500); 17 Mar 2003 02:45:18 -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 18035 invoked from network); 17 Mar 2003 02:45:17 -0000 Received: from out004pub.verizon.net (HELO out004.verizon.net) (206.46.170.142) by daedalus.apache.org with SMTP; 17 Mar 2003 02:45:17 -0000 Received: from verizon.net ([4.47.133.0]) by out004.verizon.net (InterMail vM.5.01.05.27 201-253-122-126-127-20021220) with ESMTP id <20030317024526.MZFR7930.out004.verizon.net@verizon.net> for ; Sun, 16 Mar 2003 20:45:26 -0600 Message-ID: <3E7536C7.10509@verizon.net> Date: Sun, 16 Mar 2003 18:45:27 -0800 From: Christopher Oliver Reply-To: coliver@apache.org 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: [PROPOSAL] Continuation in objectModel, Was: Discussion of Flow Issues References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out004.verizon.net from [4.47.133.0] at Sun, 16 Mar 2003 20:45:25 -0600 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Pier Fumagalli wrote: > On 17/3/03 2:06, "Vadim Gritsenko" wrote: > > >>Practical proposal: >> >>* Add "flow-continuation" to the objectModel, and getter method to the >>ObjectModelHelper, as a replacement for "kont" environment attribute. > > > Read only properties of the "script" (global) ??? Or rather a function (I'd > lean towards the first approach)... In the flow script itself, "kont" is equivalent to the return value of sendPageAndWait() and "bean-dict" is equivalent to the second argument of sendPage*(): var k = sendPageAndWait("someURI", bean); In Xsp: refers to the same object as "k" refers to the same object as "bean" In Velocity: $continuation refers to the same object as "k" $this refers to the same object as "bean" In XMLForm: ref="/" refers to the same object as "bean" id will be overwritten with the same value as k.id > > >>* Add "flow-bean" to the objectModel, as a replacement for "bean-dict" >>environment attribute. > > > +1 :-) > > This raises a question... Do we want to keep the IDL sources in line with > what's in the implementation (as it is right now) or do we want to work on > an abstract model in IDL and then implement it? > > Maybe it would be a good idea to move everything as of the current > implementation in a "cocoon.flow.javascript" module, keep that in sync with > the implementation, hack around the "cocoon.flow" module, leaning towards a > good design, and make those two models converge. > > How does it sound? Ideas? Agree. I wrote the original IDL to reflect exactly what was in CVS. We should move that somewhere else and start designing the proper interfaces. Regards, Chris