cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <>
Subject Re: [RT] was: [PROPOSAL] mulitple actions per class
Date Thu, 14 Feb 2002 13:02:43 GMT


> > The /[parameter] could be optional and be translated into an action
> > parameter named "cocoon-action-parameter". What do you think?
> Yes, this is a way to solve this, but why not simply use something like an
> ActionSelector, which can be used to extract request params in any way you
> like and expose them to sitemap. E.g.:
> <map:act name="ActionSelector">
>     <map:action-set name="my-actions">
>         <map:parameter name="method" value="{method-name}" />
>     </map:action-set>
> </map:act>
> See my previous mail about conditional action-sets.

Well, of course you *can* solve even the i18n problem with this ... by
translating the values back .... but that would be damn ugly!

Sure once the i18n thing is solved (I guess) the parameter stuff could be
solved by the following action-set (not sure!)

<action-set name="myActions">
  <action type="multiaction" action="add">
    <parameter name="method" value="add"/>
  <action type="multiaction" action="delete">
    <parameter name="method" value="delete"/>

But providing an optional parameter with the new cocoon-action syntax can
make this less verbose and maybe is useful for other stuff as well...
...don't blame it on the FS - altough I tend to have it:)

> > ...with the URL method... yes, this should work. But I had to restructure
> > all our sitemaps :(
> You should do it anyway if you extend sitemap syntax.

uahh *snief* I know :(

...but let it be for good reason then :)

To unsubscribe, e-mail:
For additional commands, email:

View raw message