A tip... I don't know if the code for your checking is heavyweight, but sometimes it's recommended to check in the onActivate() if the request is a XRH or not... because component events triggers it too. You can do so by @Inject'ing Request (org.apache.tapestry5.services) and calling isXHR() method.
Of course, that is only necessary if the code is heavy and your XHR checking for redirection isn't needed... _______________________ Everton Agner Ramos 2010/11/8 Juan E. Maya <maya.j...@gmail.com> > Yes :) I am aware of it :) I thought he wanted to do it outside a page > :) Thanks! :) > > On Mon, Nov 8, 2010 at 1:32 PM, Thiago H. de Paula Figueiredo > <thiag...@gmail.com> wrote: > > On Mon, 08 Nov 2010 09:57:47 -0200, Juan E. Maya <maya.j...@gmail.com> > > wrote: > > > >> Hi Hugo, > > > > Hi, Juan! > > > >> what u could do is to create the Link to the page u want to send > >> redirect and then use the response. It would be something like: > >> Link redirectTo = > >> pageRenderLinkSource.createPageRenderLinkWithContext(pageClass, > >> context); > >> response.sendRedirect(link); > > > > The onActivate() return value is the way to go in Tapestry. Using > > Response.sendRedirect() should only be used in RequestFilters and > > Dispatchers. > > > > -- > > 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 > >