Thanks once again for the response...
I will try this and will let you know.....
Thanks once again..

Regards,
Anjali

-----Original Message-----
From: Louis Meiring [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 6:23 PM
To: Tapestry users
Subject: Re: need help on PageValidateListener

Here's what I do in my pageValidate() method to pass values to the login 
page, I am also still very new to Tapestry so any "better" suggestions 
are welcome...
       
        LoginPage loginPage = (LoginPage) 
getRequestCycle().getPage("Login");
        loginPage.setCallback(new PageCallback(this));
        loginPage.setMessage("You have been logged out, please log in to 
continue.");

        throw new PageRedirectException(loginPage);

Anjali Abraham wrote:

>Well I need to know one more thing, if I am using this methodology "
>throw new PageRedirectException(getFromPage());", to display my next page,
>how am I going to pass parameter to my next page.?????
>Please respond,
>
>Thanks in advance,
>
>Regards,
>Anjali
>
>-----Original Message-----
>From: Louis Meiring [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, September 22, 2005 5:31 PM
>To: Tapestry users
>Subject: Re: need help on PageValidateListener
>
>I guess the PageRedirectException can send you to any page that you want 
>it to go to... I use it somewhere else (also in a pageValidate() method) 
>in my app to redirect to the Login page if a user has been logged out.
>
>Anjali Abraham wrote:
>
>  
>
>>Hi,
>>      Thanks for the response. Well if some condition is met, I need to go
>>to next page and not the previous page....
>>So what to do for that.....
>>And I am using Tapestry4.0v.
>>
>>Regards,
>>Anjali
>>
>>-----Original Message-----
>>From: Louis Meiring [mailto:[EMAIL PROTECTED] 
>>Sent: Thursday, September 22, 2005 5:21 PM
>>To: Tapestry users
>>Subject: 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: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to