Re: How to redirect in component

2008-04-07 Thread Angelo Chen
Hi Francois, You are correct, onActivate never got fired even in a layout component, seems the only way to redirect a page should be in the Dispatcher. Angelo Francois Armand wrote: > > Angelo Chen wrote: >> hi, >> >> maybe you can do this in onActivate, >> >> > I thought that onActivate w

Re: How to redirect in component

2008-04-07 Thread Francois Armand
Angelo Chen wrote: hi, maybe you can do this in onActivate, I thought that onActivate was reserved for pages, and that component didn't have it ? (at least, onActivate is never called in my components objects) If it isn't the case and onActivate is allowed in components, how can I use it

Re: How to redirect in component

2008-04-06 Thread Angelo Chen
hi, maybe you can do this in onActivate, String onActivate() { // check login if not redirect return "login"; } but a better approach is, using Dispatcher, you can find some good articles in the Tapestry5's wiki pages. Angelo, txhdeve wrote: > > I made a layout component for my appli