[ 
https://issues.apache.org/jira/browse/WICKET-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995539#comment-15995539
 ] 

Martin Grigorov commented on WICKET-6349:
-----------------------------------------

OK. Now I've spend more time on the application code and I think the problem is 
here.
Stateless applications should transfer the state back and forth with each 
request. This is what Wicket's StatelessLink does.
Your application updates the page parameters, but since the page is stateless a 
new instance is created for each click and thus the value of the counter always 
goes from 0 to 1.
You need to store the value with the Ajax response and send it back with the 
request.
Attaching a fixed version of AjaxStatelessExample.java...

> Stateless form does not work when RecreateBookmarkablePagesAfterExpiry is 
> false
> -------------------------------------------------------------------------------
>
>                 Key: WICKET-6349
>                 URL: https://issues.apache.org/jira/browse/WICKET-6349
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.6.0
>            Reporter: Jeroen
>            Assignee: Martin Grigorov
>             Fix For: 7.7.0
>
>         Attachments: StatelessExpired.zip
>
>
> When you set RecreateBookmarkablePagesAfterExpiry to false, you get a 
> PageExpiredException when you use a stateless form/page.
> It is basically the same bug as described in 
> https://issues.apache.org/jira/browse/WICKET-5521



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to