T5 Does have Coercion, which are like the old DataSqueezers:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/coercion.html

But the key thing is that it uses the "/" dir separator as the parameter separator; I don't think it support natively having one parameter take up multiple path parts.. like what you envision ( having one parameter, the venu take up 4 path parts ).



You might just have the page deal with four parameters. which you get do decide what they are, but you ignore most of them :) shrug..

you can learn about onActivate and onPassivate here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html



But ultimately, if you want tighter support ( which is a good idea ), you will have to delve into the code ( i don't have time to give you a class name ), and see where it converts from the url into the page name and parameters... Maybe you can override that service (using Tapestry Ioc) and hook in your own slightly modified rules.. etc etc.. (as in copy their class, modify the code, configure it to override the old service through Ioc, possibly Tapestry-Core-Aliases)


hope this helps.





Britske wrote:
Thanks these all seem valid approaches. What i'm looking for is a stretching the possibilities i guess but here it
goes anyway: I want a way in which I can plug a 'rewrite strategy'. This
means that not only I have to translate urls from 'nice' to 'tapestry5'
-internal but also the other way around, so that tapestry-pages reference
other pages automatically by their 'nice' -url.
I would like to keep the code in 1 place for making this
bidirectional-translation. Doing this with mode_rewrite does't give me control in code I think. I wonder if this is possible using some form of rewrite-filter, that is able to translate both ways. any ideas on this?

regards,
Geert-Jan



Robin Helgelin wrote:
On 9/21/07, Daniel Leffel <[EMAIL PROTECTED]> wrote:
I went down this path and decided that mod_rewrite is a much cleaner way
to
achieve something like this.
Or maybe an urlfilter bundled with your war, there are a few usable ones.

--
        regards,
        Robin

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





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

Reply via email to