Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 87587 invoked from network); 22 Nov 2004 23:06:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Nov 2004 23:06:56 -0000 Received: (qmail 73598 invoked by uid 500); 22 Nov 2004 23:06:53 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 73563 invoked by uid 500); 22 Nov 2004 23:06:52 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 73550 invoked by uid 99); 22 Nov 2004 23:06:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [68.230.240.30] (HELO lakermmtao09.cox.net) (68.230.240.30) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 22 Nov 2004 15:06:51 -0800 Received: from [192.168.1.100] (really [68.11.49.127]) by lakermmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041122230647.NLDK20678.lakermmtao09.cox.net@[192.168.1.100]> for ; Mon, 22 Nov 2004 18:06:47 -0500 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: <41A1AFAB.5090802@upaya.co.uk> <41A1BB87.9090207@apache.org> <1101119094.6532.28.camel@yum.site> <41A1C192.7050604@apache.org> <1101120467.6532.32.camel@yum.site> <1101135457.6532.42.camel@yum.site> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2DB27F52-3CDB-11D9-B185-000393B3DE96@hard-bop.com> Content-Transfer-Encoding: 7bit From: Glen Ezkovich Subject: Re: Multiple forms on one page Date: Mon, 22 Nov 2004 17:06:44 -0600 To: dev@cocoon.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It seems to me that what we want are multiple forms on a page and what is being proposed is a way to have one big form that gets processed in pieces. To me the stumbling block seems to be in Forms.js. When we display a form using showForm the only form it knows about is its self. In order to process multiple Forms something needs to know about multiple Forms. In order not to break encapsulation, it is essential that each form have its own separate definition. I may be missing something here, but it seems to me that if you want to show multiple forms on a page you need to move the showForm method to a place where multiple forms can be collected, examined, validated, bound and processed. Say, right along side sendPageAndWait. I have more to say on this and I have another e-mail in process that will take a bit more thought before its complete. I just wanted to throw this out there and any comments are more than welcome. Glen Ezkovich HardBop Consulting glen at hard-bop.com http://www.hard-bop.com A Proverb for Paranoids: "If they can get you asking the wrong questions, they don't have to worry about answers." - Thomas Pynchon Gravity's Rainbow