[
https://issues.apache.org/jira/browse/WICKET-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13597189#comment-13597189
]
Martin Grigorov commented on WICKET-5078:
-----------------------------------------
I think this should be improved.
org.apache.wicket.request.cycle.RequestCycle#setResponsePage(IRequestablePage)
sets the stateless hint to false just to make sure that stateless pages are
stored and used after the redirect.
See WICKET-3965.
> RestartResponseException broken with page instance and bookmarkable page
> ------------------------------------------------------------------------
>
> Key: WICKET-5078
> URL: https://issues.apache.org/jira/browse/WICKET-5078
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.6.0
> Reporter: Christoph Leiter
> Assignee: Sven Meier
> Attachments: WICKET-5078-quickstart.zip
>
>
> If I do throw new RestartResponseException(new OtherPage("redirected!")); on
> OtherPage itself and OtherPage is mounted then a completely new page is
> constructed and displayed instead of the instance I created.
> Does not happen if the page isn't mounted or the current page is not
> OtherPage. If I hide the default constructor it also doesn't happen.
> I'll attach a quickstart which demonstrates the problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira