Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 43781 invoked from network); 16 Jun 2006 15:16:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2006 15:16:08 -0000 Received: (qmail 68027 invoked by uid 500); 16 Jun 2006 15:16:05 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67949 invoked by uid 500); 16 Jun 2006 15:16:05 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 67937 invoked by uid 99); 16 Jun 2006 15:16:05 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jun 2006 08:16:05 -0700 Message-ID: <4492CB27.5060108@apache.org> Date: Fri, 16 Jun 2006 17:15:51 +0200 From: Carsten Ziegeler User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [cforms] New ProcessingPhases added a repeater bug? References: <44907A6E.2060804@agssa.net> <70AC564F-A148-416A-9F72-2CD8C0F660DC@leonid.de> <4491D535.5050205@agssa.net> <44925F19.8020909@apache.org> <4492C8A1.9020702@agssa.net> In-Reply-To: <4492C8A1.9020702@agssa.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Antonio Gallardo wrote: >> > It's not it does not work. The code was moved out because this seems to > be a better place for firing form events. This events are form events, > hence the form should fire them as needed. IMHO, the binding framework > does not need to know/care about special form needs. Agreed > > This can be fixed in a different way: > While fixing this issue. We wondered why form.save() and form.load() > methods are defined only in form.js . This make pretty complicated to > call the binding framework outside flow (ie: from the actions). IMHO, > this methods belongs to form.java and in this way we can also not allow > an outsider class to call the following public methods: > > informStartLoadingModel() > informEndLoadingModel() > informStartSavingModel() > informEndSavingModel() > > WDYT? > Hmm, ok it sounds good to me to move code out of form.js into the Java code. I think most of the code from form.js should be moved to be available for cforms clients which do not use flow. And protecting the above methods is good as well. The only thing I do not know is if it is a good idea to add a dependency to the binding package to the form class. So a general +1 for this. Carsten -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/