You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (JIRA)" <ji...@apache.org> on 2008/08/29 12:30:46 UTC
[jira] Closed: (WICKET-1637) ModalWindow can not be "reused"
[ https://issues.apache.org/jira/browse/WICKET-1637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Ertl closed WICKET-1637.
------------------------------
Resolution: Fixed
> ModalWindow can not be "reused"
> -------------------------------
>
> Key: WICKET-1637
> URL: https://issues.apache.org/jira/browse/WICKET-1637
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Reporter: Peter Ertl
> Assignee: Matej Knopp
> Attachments: wicket-1637-modal-window-reuse.patch
>
>
> ModalWindow's methods setContent(Component) and setPageCreator() are not properly implemented. You should be able to call setContent() and setPageCreator() in sequence (or vice versa). However this will not work:
> I use one general purpose ModalWindow in my page to display several types of popups in it (of type 'component' and 'page')
> <body>
> <div wicket:id="popup"></div>
> ...
> </body>
> some of these popups use setPageCreator() others use setContent().
> however, once you use setContent(Component) you cannot use setPageCreator() anymore, because ModalWindow keeps the custom component / page creator stored and does not reset these properties as required.
> fix is attached (very simple, contains only two new lines :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.