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

Sven Meier commented on WICKET-5078:
------------------------------------

If you're wondering why OtherPage is stateless although it contains an AjaxLink:
You're adding the AjaxLink in #onInitialize(), that's too late to influence the 
stateless detection, since a page's #onInitialize() is called shortly before 
render only :(.
                
> 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

Reply via email to