I'm not sure why you'd want to do this from the link transformer. Can you explain?
My first choice would be to let it reach a page and have that page class do the redirect from an onActivate handler. Josh On Mon, Jul 18, 2011 at 7:11 AM, Bo Gao <eli...@gmail.com> wrote: >> Just return a URL instance of a non-tapestry page from the event >> handler. I think that will do > > I do this in a PageRenderLinkTransformer, the interface is > public PageRenderRequestParameters decodePageRenderRequest(Request request) ; > So I must return PageRenderRequestParameters, The first parameter must be a > valid page name. > Is their a way that I can rewrite the url to a common url. > > On Jul 18, 2011, at 6:45 PM, Taha Hafeez wrote: > >> Just return a URL instance of a non-tapestry page from the event >> handler. I think that will do >> >> >> On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <eli...@gmail.com> wrote: >>> Thank you for your response, >>> >>> For example I want to redirect /download to another url "download.do" >>> But the download.do is not a tapestry page, it's not handled by tapestry. >>> How to do this? >>> >>> >>> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote: >>> >>>> Hi >>>> >>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ >>>> >>>> regards >>>> Taha >>>> >>>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <eli...@gmail.com> wrote: >>>>> I want to redirect some url to another url, the url is not a tapestry >>>>> page. >>>>> but decodePageRenderRequest returns a PageRenderRequestParameters >>>>> How can I do this. >>>>> >>>>> -- >>>>> Bo Gao >>>>> eli...@gmail.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 >>>> >>> >>> -- >>> Bo Gao >>> eli...@gmail.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 >> > > -- > Bo Gao > eli...@gmail.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