You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by asianCoolz <ji...@yahoo.com> on 2009/10/29 14:54:51 UTC

how to use PageEvent in tapestry4 to sendRedirect to another page


public void pageValidate(PageEvent event) {
        //how to use pageEvent to sendRedirect to google.com ?




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


Re: how to use PageEvent in tapestry4 to sendRedirect to another page

Posted by Ulrich Stärk <ul...@spielviel.de>.
Ahh, I'm so sorry. Yeah, PageRedirectException can be used to force a redirect.

Uli

Am 29.10.2009 15:15 schrieb Thiago H. de Paula Figueiredo:
> Em Thu, 29 Oct 2009 12:12:37 -0200, Ulrich Stärk <ul...@spielviel.de> 
> escreveu:
> 
>> http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
> 
> asianCoolz is asking about Tapestry 4.
> 
>  From the documentation at 
> http://tapestry.apache.org/tapestry4.1/usersguide/events.html:
> 
> "Throw PageRedirectException to activate a different page."
> 

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


Re: how to use PageEvent in tapestry4 to sendRedirect to another page

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 29 Oct 2009 12:12:37 -0200, Ulrich Stärk <ul...@spielviel.de>  
escreveu:

> http://tapestry.apache.org/tapestry5.1/guide/pagenav.html

asianCoolz is asking about Tapestry 4.

 From the documentation at  
http://tapestry.apache.org/tapestry4.1/usersguide/events.html:

"Throw PageRedirectException to activate a different page."

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


Re: how to use PageEvent in tapestry4 to sendRedirect to another page

Posted by Andrus Adamchik <an...@objectstyle.org>.
The question was about Tapestry 4. And the answer I guess is to throw  
a PageRedirectException.

Andrus

On Oct 29, 2009, at 4:12 PM, Ulrich Stärk wrote:

> http://tapestry.apache.org/tapestry5.1/guide/pagenav.html
>
> Am 29.10.2009 14:54 schrieb asianCoolz:
>> public void pageValidate(PageEvent event) {
>>       //how to use pageEvent to sendRedirect to google.com ?


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


Re: how to use PageEvent in tapestry4 to sendRedirect to another page

Posted by Ulrich Stärk <ul...@spielviel.de>.
http://tapestry.apache.org/tapestry5.1/guide/pagenav.html

Am 29.10.2009 14:54 schrieb asianCoolz:
> 
> public void pageValidate(PageEvent event) {
>         //how to use pageEvent to sendRedirect to google.com ?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

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