On Sat, 28 Apr 2012 08:37:31 -0300, George Christman <gchrist...@cardaddy.com> wrote:

Hi lance, I was only doing it there inorder to handle page redirection if the user didn't have role access. Is there a better way to handle the redirection outside onactivate then?

onActivate() is *the* place to do redirections. Lance only said that you should avoid doing database queries in onActivate(), as it is invoked in both page render and event requests, and most of the time you probably don't need that database query in event requests.

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

Reply via email to