You could put all your pages under the "shop" package and tapestry will do
what you want out of the box.

eg
com.mypackage.pages.shop.Page1
com.mypackage.pages.shop.Page2

If you want more control, you can decorate the ComponentEventLinkEncoder to
do whatever you want. 

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

Here is an example of a ModeComponentEventLinkEncoder which uses a regex to
remove a section of the URL (the mode) and store it in an environmental
before the normal tapestry URL handling takes place.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-generated-urls-tp5718516p5718517.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