On Sat, 28 Apr 2012 12:59:05 -0300, George Christman
<gchrist...@cardaddy.com> wrote:
So if I needed to check to see if the user has rights to the current
object, how would you recommend doing this. I agree onactivate isnt the
spot for doing the query, but is the only spot to do the redirection.
Role access isnt static either. Thanks for the help guys.
In this case, you should do these checks in onActivate(). As I said in
another thread some weeks ago, as long as you know what you're doing (i.e.
not fetching data that isn't needed at that time), you don't need to avoid
doing database queries in onActivate().
--
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