On Sun, 22 Jun 2014 22:51:46 -0300, Chris Mylonas <ch...@opencsta.org> wrote:

Hi Tapestry Users,

Hi!

Whilst waiting for customs clearance in a Fijian port, I have a query.

Sounds fun! :P

In my else, I'd like to redirect to a page, "you don't have permissions for
this action".

All examples I've come across show setupRender() returning void or a
boolean, and onActivate() returning void.

Actually, there's a lot of stuff you can return from onActivate(). The returned value is treated by Tapestry as "what should be shown right now".

How would I redirect the tapestry way?

By returning a non-null value in an onActivate() method. Null and void are treated as "go ahead and render the page". More details here: http://tapestry.apache.org/page-navigation.html

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.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