Yes, see org.apache.tapestry5.ComponentResources: Link link = resources.createPageLink(_page, false, _context);
There are a number of ways to construct a link in Tapestry, choose whats best for you. From an event you can return a class a Tapestry Page Object a URI or a Link object, have I missed any? cheers, Peter ----- Original Message ----- From: "Ville Virtanen" <ville.virta...@cerion.fi> To: users@tapestry.apache.org Sent: Wednesday, 11 March, 2009 10:27:35 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: How to make link correctly Hi, Can I create page render link or component event link using public interfaces? Currently my code uses the internal LinkFactory which was changed to LinkSource? And at one instance it was using PageRenderRequestParameters as input but now again something else... I do redirects in a very low level sometimes, so I cannot rely on T5 to transform my String page name etc to correct url, so I do PageRenderRequestParameters prrp = new PageRenderRequestParameters(pageName, new EmptyEventContext()); pageLink = linkFactory.createPageRenderLink(prrp); response.sendRedirect(pageLink.toRedirectURI()); Is there a better way to do this? Thanks in advance! -- View this message in context: http://www.nabble.com/How-to-make-link-correctly-tp22450579p22450579.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org