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

Jeroen edited comment on WICKET-6349 at 3/30/17 1:58 PM:
---------------------------------------------------------

If you use the following wicket-example: 
http://examples7x.wicket.apache.org/stateless/wicket/bookmarkable/org.apache.wicket.examples.stateless.AjaxStatelessExample,
 then:

# Add the following lines to the init method of StatelessApplication.java:
{code}
getPageSettings().setRecreateBookmarkablePagesAfterExpiry(false);
getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);
{code}
# Start example application
# Go to http://localhost:8080
# When you increment the counter, you end up on the expired page

Your console displays the following message: 
org.apache.wicket.protocol.http.PageExpiredException: Bookmarkable page with id 
'null' has expired.


was (Author: jeroen1979):
If you use the following wicket-example: 
http://examples7x.wicket.apache.org/stateless/wicket/bookmarkable/org.apache.wicket.examples.stateless.AjaxStatelessExample,
 then:

# Add the following lines to the init method of StatelessApplication.java:
{code}
getPageSettings().setRecreateBookmarkablePagesAfterExpiry(false);
getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);
{code}
# Start example application
# Go to http://localhost:8080
# When you increment the counter, you end up on the expired page

> 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
>         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