You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/03/27 11:19:20 UTC
[jira] [Updated] (WICKET-5545) Cannot use redirect in ModalWindow's
page#onInitialize()
[ https://issues.apache.org/jira/browse/WICKET-5545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-5545:
------------------------------------
Attachment: HelpModal.zip
A quickstart provided by a user in users@ mailing lists
> Cannot use redirect in ModalWindow's page#onInitialize()
> --------------------------------------------------------
>
> Key: WICKET-5545
> URL: https://issues.apache.org/jira/browse/WICKET-5545
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 6.14.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Attachments: HelpModal.zip
>
>
> With WICKET-5415 Wicket no more stores pages which were not rendered, even if they are stateful.
> To do this we moved the code that marks the page as used from its constructor to #onInitialize() (IPageManager#touch(page)).
> A ModalWindow with a Page needs to store the page to be able to reference it from the iframe.
> With commit f36fa20 we added logic to fully initialize the modalwindow's page. This breaks use cases where the application needs to use any code that will lead to a redirect (e.g. setResponsePage(), or scheduleRequestHandler()).
> The fix is to just touch the page, but not fully initialize it.
--
This message was sent by Atlassian JIRA
(v6.2#6252)