According to the documenation, Ognl allows you to create maps. The syntax is:

#{ "foo" : "foo value", "bar" : "bar value" }

So you could construct a Map for the direct link parameter.

Then you could write a SqueezeAdaptor for Maps. It could use the DataSqueezer 
to squeeze the values (and keys?) and then concatenate them with a separator 
(e.g. the parameter might end up as sp=MSname:Sfred:Sage:22).

Would probably be a nice addition to the core Tapestry framework.

Paul
------------------
Paul Field
Global Markets Research IT
Deutsche Bank


Oscar Picasso <[EMAIL PROTECTED]> wrote on 12/05/2006 14:00:16:

> Hi,
>
> Is there a way to dynamically use named parameters in a Direct Link?
>
> Let's say that sometimes I can have the parameters
> name=..., age=...
> other times name=..., city=..., country=...
> or even state=..., gender=...
> and so on.
>
> We can have many combinaisons like the above so I cannot simply rely
> on the parameters order. I have thought about using a first
> parameter that just list the actual parameters name and order.
>
> Like params=name,age name=.., age=...
>
> There is probably a better way. Any idea?
>
> Thanks
>
> Oscar
>
>
> ---------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.
> Great rates starting at 1&cent;/min.
---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to