Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 57048 invoked by uid 500); 14 Feb 2002 15:59:24 -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 56995 invoked from network); 14 Feb 2002 15:59:23 -0000 From: "Vadim Gritsenko" To: Subject: RE: [PROPOSAL] cocoon-action Date: Thu, 14 Feb 2002 10:57:42 -0500 Message-ID: <001a01c1b570$5643c0d0$90a4558b@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Torsten Curdt [mailto:tcurdt@dff.st] > > > Suggestion: Isn't it better to add another parameter instead of clogging > > cocoon-action? I mean: > > > > Instead of: > > > value="Add"> > > > > Have: > > > > > value="parametervalue"> > > > > Hope it fits into your applications as well as > > "cocoon-action-Add/parametervalue" or even better. > > That's true of course! This would be much nicer but will not work because > of same reason the hidden input example Carsten suggested will not work. > -> More than one submit button per form. > > Anyway, I already implemented the new syntax (just haven't yet commited it > yet) but left out the parameter stuff. (need to get my webapp running with > all the new stuff to try it out ;) > > But you gave me an idea... what about this: > > > value="parametervalue"> > > Note that name is the same as the submit button's plus a postfix. > Cool! This does not even need a change in single line of code.... > The action only have to know it's "name" or key > > Sometimes it's that simple you don't see it :) :) The way to go then! Vadim > -- > Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org