Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 94306 invoked by uid 500); 14 Feb 2002 15:13:51 -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 94252 invoked from network); 14 Feb 2002 15:13:50 -0000 Message-ID: <9916289167D2D411BD0700508BB4A527E67002@dvntex01.devote.nl> From: Michael Homeijer To: "'cocoon-dev@xml.apache.org'" Subject: RE: [PROPOSAL] cocoon-action Date: Thu, 14 Feb 2002 16:06:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This would still mean problems with multiple buttons on a form, right?. I think the proposal also doesn't fix the problem you have when you use multiple image buttons on a form (where you now need an ugly javascript hack), that you have to define in the following way: Maybe some sort of form name/input name combination type of encoding for actions? Michael > -----Original Message----- > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de] > Sent: donderdag 14 februari 2002 16:05 > To: cocoon-dev@xml.apache.org > Subject: RE: [PROPOSAL] cocoon-action > > > Hm, > > why don't you use a hidden input field in your form instead > of using the submit button? > > > > This is language independent and submit button text independent > and works. > > Carsten > > > Torsten Curdt wrote: > > -----Original Message----- > > From: Torsten Curdt [mailto:tcurdt@dff.st] > > Sent: Thursday, February 14, 2002 1:46 PM > > To: cocoon-dev@xml.apache.org > > Subject: [PROPOSAL] cocoon-action > > > > > > the latest dicussion revealed a i18n problem with the cocoon-action. > > Let's say we have a simple action-set > > > > > > > > > > > > > > This action-set can be used in HTML as follows > > > > > > > > > > Now here is the problem: the value attribute is the key for > the action set > > as well as the caption of the input button. Now think of a > i18n site. The > > HTML should look like for locale "de": > > > > > > > > > > But the action-set has still english keys. So you would > need an action-set > > per lanuage. This is IMHO really *BAD*!!!!!!! > > > > So I propose to change this as follows: > > > > locale en: > > > > > > locale de: > > > > > > ...so there is no i18n dependency. AAAND while changing > this I'd also like > > to add a way to pass another parameter to the action: > > > > > value="Add"> > > > > This would make an MultiAction very easy to implement! :) > But I'm sure > > there are other use-cases as well... > > > > So I'd like to deprecate the old "cocoon-action" syntax > (but still support > > it) and like to introduce the new syntax. > > > > [prefix][delimitter][actionkey]{[delimitter][paramtervalue]} > > | | | | | > > | | | | +-optional: > > | | | | will be > > passed as action > > | | | | parameter > > named (e.g. > > | | | | > [prefix]-paramter) > > | | | | > > | | | +------- introduce the > > parametervalue > > | | | (e.g. '/') > > | | | > > | | +------------------- the key of action > > (the value > > | | attribute of the > > current impl) > > | | > > | +------------------------------- (e.g. '-' or ':') > > | > > +----------------------------------------- prefix (e.g. again > > 'cocoon-action') > > > > What do guys think? > > -- > > Torsten > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > > For additional commands, email: cocoon-dev-help@xml.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org