I have written a sample application which takes a URL of the form
"http://host:port/context/<mode>/foo/bar" and transforms it to
"http://host:port/context/foo/bar";. It also sets a "Mode" environmental to
contain the <mode>. This environmental can then be accessed in pages and
components. In your case, the mode is similar to your club.

I do this by decorating the ComponentEventLinkEncoder as I found that the
LinkTransformer API was not adequate.

https://github.com/uklance/tapestry-sandbox/blob/master/src/main/java/com/github/uklance/mode/ModeComponentEventLinkEncoder.java
https://github.com/uklance/tapestry-sandbox/blob/master/src/main/java/com/github/uklance/services/AppModule.java#L133

Cheers,
Lance.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-sub-directory-to-URL-tp5714532p5714543.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to