Thanks, Nino.Martinez. When I tried to make the quickstart, I digged out the
reason. 
Because I have some SSL pages, so I set 
getRequestCycleSettings().setRenderStrategy(Settings.ONE_PASS_RENDER); in
application init().

I am not sure why it causes the page expired. But I guess this setting
causes the mounted page lost bookmarkable url. Instead of mount url, it is
shown as "?wicket:interface=:0:loginForm::IFormSubmitListener... 
". When click the back button from page 3), it will try redirect to page 2)
with url "wicket:interface=:0:loginForm::IFormSubmitListener..." . But this
time page 2) does not include any loginForm submitListerner any more, so the
page get expired.

Can anyoen give the explaination?

BTW, even I removed this RequestCycleSetting, my SSL pages still work. So
does it mean it is optional?


Nino.Martinez wrote:
> 
> No problem.. Okay so you should do a quickstart (just use the maven 
> wicket quickstart archetype) and make it available i'll take a peek at 
> it. I find in many cases just doing the quickstart makes it obvious 
> where I've made an error.
> 
> wenm wrote:
>> Hi, 
>>
>> I use wicket authorization annotations. So even though the page is
>> mounted,
>> user can't access the page without login.
> Great so you do intercept it:)
>>  Both menu page and payment page
>> should be reachable after login in.
>>
>> The schedule is not that tight yet, but thanks for your kind help.
>>   
> No problem happy to help.
>>
>>
>> Nino.Martinez wrote:
>>   
>>> General  how do you intercept pages when unauthorized? I saw that you 
>>> mounted payment.class which only should be reachable when logged in
>>> right?
>>>
>>> Nothing here stands out btw, a simple quickstart would be nice..
>>>
>>> And if it's something in a hurry since I live in dk(copenhagen area) and 
>>> are consultant I could come by and assist you if wanted?
>>>
>>> replying inline for some of your stuff.
>>>
>>> wenm wrote:
>>>     
>>>> Hi 
>>>> I have tried to upgrade to 1.3.4, but it doesn't help.
>>>>
>>>> WebApplication
>>>>  protected void init() {
>>>>         super.init();
>>>>        
>>>> getRequestCycleSettings().setResponseRequestEncoding("ISO-8859-1");
>>>>        
>>>> getResourceSettings().setThrowExceptionOnMissingResource(false);
>>>>         mount(new HybridUrlCodingStrategy("/payment", Payment.class));
>>>>         mount(new HybridUrlCodingStrategy("/login", Login.class));
>>>>         mount(new HybridUrlCodingStrategy("/menu", Menu.class));
>>>>    }
>>>>   
>>>>       
>>> Above looks fine...Although I think the resource and request stuff are 
>>> default, cant remember.
>>>     
>>>> 1)Login Class
>>>>  class LoginForm extends Form {
>>>>         public LoginForm(String id) {
>>>>             super(id);
>>>>         }
>>>>
>>>>         public void onSubmit() {
>>>>             String userId = getUsername();
>>>>             String password = getPassword();
>>>>             if (!session.authenticate(userId, password)) {
>>>>                 // authenticate fail 
>>>>                 Login returnLogin = new Login();
>>>>                
>>>> returnLogin.setErrorMsg(session.getLoginResponse().getReturnMessage());
>>>>                 int errorCode =
>>>> session.getLoginResponse().getReturnCode();
>>>>                 String errorKey =
>>>> session.getLoginResponse().getReturnKey();
>>>>                 setResponsePage(returnLogin);
>>>>   
>>>>       
>>> im not sure why you do above? I guess an error("not authenticated") 
>>> should do?
>>>     
>>>>              } else {
>>>>                 // authenticate success
>>>>                 setResponsePage(Menu.class);
>>>>   
>>>>                             }
>>>>         }
>>>>     }
>>>>
>>>> 2)Menu Class
>>>> add(new BookmarkablePageLink("payment-link", Payment.class));
>>>>
>>>> 3)Payment Class
>>>>
>>>>
>>>>
>>>> Hi
>>>>
>>>> Sound's really wierd, like you are trying to post some stuff or 
>>>> something.. Could you show us some code..?
>>>>
>>>> And you should really upgrade to 1.3.4 since there were a lot of bug 
>>>> fixing going on from 1.3.1 to 1.3.4
>>>>
>>>>   
>>>>       
>>> -- 
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>     
>>
>>   
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/page-expired-warning-tp19288551p19308783.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to