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:16 UTC

[jira] [Created] (WICKET-5545) Cannot use redirect in ModalWindow's page#onInitialize()

Martin Grigorov created WICKET-5545:
---------------------------------------

             Summary: 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)