On Thu, 01 Jul 2010 14:44:57 -0300, Chanticleer <guruu...@gmail.com> wrote:
i meant a metaphorical beating :)
:)
but do you think you can share me the code to do that redirect? i cant
for the life of me figure it out. thanks
The documentation is here:
http://tapestry.apache.org/tapestry5.1/guide/pagenav.html.
A little example: suppose you want to redirect from page A to page B
depending on some logic:
public class A {
Object onActivate() {
boolean redirect = ...; // any logic here
if (redirect) {
return B.class;
}
else {
return null; // continue normal page processing
}
}
}
It can't get much easier and elegant than that. :)
--
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