You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Marcel Sammut <su...@rogers.com> on 2009/12/17 18:11:53 UTC

T5 PageRedirectExeption

What is the equivalent to throwing a PageRedirectException in T3, T4 in T5?

I have a page that has some context activation handler that does validation
of the page context parameters, and if not valid, redirects to a different
page.  I did this in previous versions of Tapestry using the
PageRedirectException class, but not sure what to use in T5.

Thanks,
Marcel
-- 
View this message in context: http://old.nabble.com/T5-PageRedirectExeption-tp26831529p26831529.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 PageRedirectExeption

Posted by Olle Hallin <ol...@hit.se>.
Or, a java.net.URL if you want to redirect to an arbitrary location outside
the own app.

Olle Hallin
Senior Java Developer and Architect
olle.hallin@crisp.se
www.crisp.se
http://www.linkedin.com/in/ollehallin



2009/12/17 Thiago H. de Paula Figueiredo <th...@gmail.com>

> Em Thu, 17 Dec 2009 15:11:53 -0200, Marcel Sammut <su...@rogers.com>
> escreveu:
>
>
>  What is the equivalent to throwing a PageRedirectException in T3, T4 in
>> T5?
>>
>
> Just return the name of the target page, its class or an instance of it in
> the event handler method.
>
> --
> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: T5 PageRedirectExeption

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 17 Dec 2009 15:11:53 -0200, Marcel Sammut <su...@rogers.com>  
escreveu:

> What is the equivalent to throwing a PageRedirectException in T3, T4 in  
> T5?

Just return the name of the target page, its class or an instance of it in  
the event handler method.

-- 
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org