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