[
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 2:03 PM:
---------------------------------------------------------
I added a quickstart project based on the stateless project of the
wicket-example page:
http://examples7x.wicket.apache.org/stateless/wicket/bookmarkable/org.apache.wicket.examples.stateless.AjaxStatelessExample.
I added the following lines to the init method of the application:
{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):
I added a quickstart project based on the stateless project of the
wicket-example page:
http://examples7x.wicket.apache.org/stateless/wicket/bookmarkable/org.apache.wicket.examples.stateless.AjaxStatelessExample.
# I added the following lines to the init method of the application:
{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.
> 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)