On Thu, 28 Jul 2011 18:18:29 -0300, hese <1024h...@gmail.com> wrote:

All,

Hi!

What I want is to access
pages.admin.users.UserEdit from the url /admin/users/edit

Rename it to UsersEdit and Tapestry already does what you want.

pages.admin.users.ActiveUsers from the url /admin/users/active

Tapestry already does that. :) The package name, if present in the class name, is stripped to give the page URL. Both /admin/users/edit and /admin/users/activeusers are valid URLs. When generating links to this page, Tapestry will use the short URL (/admin/users/edit). Haven't you tried it yet?

Currently, the way I know is tapestry just puts the page name as the url
path, but I want to be able to configure them differently.

If you want full control, use the LinkTransformer API. There's a very nice blog post by Igor Drobiazko here: http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to