Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 87657 invoked by uid 500); 24 Apr 2003 18:23:45 -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 87582 invoked from network); 24 Apr 2003 18:23:44 -0000 Received: from tartarus.telenet-ops.be (195.130.132.46) by daedalus.apache.org with SMTP; 24 Apr 2003 18:23:44 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by tartarus.telenet-ops.be (Postfix) with SMTP id C3CDCDC189 for ; Thu, 24 Apr 2003 20:23:48 +0200 (CEST) Received: from [192.168.123.102] (D5E00128.kabel.telenet.be [213.224.1.40]) by tartarus.telenet-ops.be (Postfix) with ESMTP id 9B650DC775 for ; Thu, 24 Apr 2003 20:23:48 +0200 (CEST) Subject: Re: Woody From: Bruno Dumon To: cocoon-dev@xml.apache.org In-Reply-To: References: <1051180298.3264.623.camel@yum.ot> Content-Type: text/plain Organization: Outerthought Message-Id: <1051208637.17437.847.camel@yum.ot> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 24 Apr 2003 20:23:57 +0200 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 2003-04-24 at 15:18, Luca Morandini wrote: > Bruno Dumon wrote: > > > The case of e.g. disabling a list box based on the state of checkbox > > made me think that if in the form definition this dependency is defined, > > the framework could automatically generate the necessary event listeners > > etc to do this, and this part is more complex than the validation rules. > > > > Really ? > I solved this by just adding a series of "action" elements containing > the Javascript event to listen to and the Javascript statement to > execute, like in: > > mandatory="true" > editable="true" > allowed-edit-roles="sm ar cm"> > > > function="onChangedForm()"/> > > > > ...or had you something better in mind ? > Yeah, what I had in mind was that one could define something like this on a component X: enabled="mycheckbox = true" and then the framework would be smart enough to add an eventlistener on the "mycheckbox" control which disables the component X when appropriate. > > > I've got to say though that all this client-side javascript things are > > not a high priority for me personally. > > > > Hmmm... if you happen to develop complex forms, users (in my experience) > will eat you alive if you don't provide them with fast feedback and > "reactive" forms :( Depends a lot on the use-case of course. I guess these are mostly on intranets? If anyone knows of a good public example, I'd be interested to see it. Also, when I'm saying it's not a high priority for me, it means that I probably won't be doing any coding on it in the short-term, but I'll keep it in mind when making design decissions. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org bruno@apache.org