Joel Halbert wrote:
> There was a jira feature request raised for named params some time ago:
> https://issues.apache.org/jira/browse/TAP5-264
> 
> 
> Andy - in the meantime, another alternative is to create a custom
> ValueEncoder for activation contexts which can encode and decode a map.
> You could then encode the map context using a scheme which uses, for
> example, underscores as delimiters, such as:
> 
> /mypage/name1_value1_name2_value2
> (i.e. /mypage/<context>)
> 
> This would allow you to access params by name from an activation
> context.
> 
> This works well enough so long as you do not care about using the
> correct http request syntax for query strings
> (?name1=value1&name2=value2).

I've ended up essentially doing this, but more manually via the
onActivate() method of the page. Can you point me at any documentation
on how to do this with a custom ValueEncoder as you've suggested, and
what the benefits would be of doing it that way? (e.g. would this make
it easy to use the same param value encoding scheme on multiple pages?)

Cheers,
Andy

-- 
Dr Andy Buckley
Institute for Particle Physics Phenomenology
Durham University
0191 3343798 | 0191 3732613 | www.insectnation.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to