On Wed, 24 Feb 2010 16:11:18 -0300, Algirdas <algirda...@gmail.com> wrote:
Hello,
Hi!
Is there any way to do a redirect from any method?
Not out-of-the-box.
For example I have EnsureUserLoggedIn() which should redirect to Login
page, but this is called not in onActivate() method.
onActivate() (or any method handing the activate event) is the right place
to redirect inside a page.
A most reusable way of doing what you want is to implement a RequestFilter
or a Dispatcher.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, 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