On Sun, 24 Apr 2011 23:05:02 -0300, Mark <mark-li...@xeric.net> wrote:

Thanks Brian and Taha. I know I can build what I need by combining both of your suggestions. I wanted to make sure there wasn't a simple way to get
what I wanted without needing to build it manually, but it doesn't sound
like there is another way to get this directly from Tapestry.

@Inject
private PageRenderLinkSource pageRenderLinkSource;

Link link = pageRenderLinkSource.createPageRenderLinkWithContext(Index.class);
String url = link.toAbsoluteURI();

By the way, you can get the HttpServletRequest @Inject'ing it directly, not needing to use RequestGlobals.

--
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