You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Louis Meiring <lo...@gmail.com> on 2005/09/22 13:51:25 UTC

Re: need help on PageValidateListener

Hi Anjali,

Hope it helps...

Try this, it's how I do it in Tapestry 3.0.3:
    public void pageValidate(PageEvent pageEvent)
    {
        //if some condition is met go back to previous page...
            throw new PageRedirectException(getFromPage());
    }

Anjali Abraham wrote:

>Hi All,
>            I have a scenario wherein on load of my 1st page, I need to
>display another page, so I have used PageValidateListener interface.
>As you can see the below code,
>public abstract class Xxxx extends BasePage implements PageValidateListener{
> 
>            public void pageValidate(PageEvent event) {
>            
>                        event.getRequestCycle().activate("myPage");
>                        return;
>    }
> 
>but here, my next page by name "myPage" is not getting invoked....??
>Isn't it that we can call another page like the above code??????????????
> 
>Please Respond,
> 
>Thanks in advance,
> 
>Regards,
>Anjali
> 
>
>  
>


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