On Fri, 14 Dec 2012 21:43:17 -0200, bhorvat <horvat.z.bo...@gmail.com>
wrote:
So what would be the best way to prevent a page to be accessed without
some context?
Object onActivate(EventContext context) {
if (context.getCount() == 0) {
return ...; // some page or URL to redirect to.
}
return null;
}
Also I want to know what is the best way to save cotext. Using onPasivate
maybe?
That's the recommended way. Avoids the use of the session. Makes the page
bookmarkable.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org