[ https://issues.apache.org/jira/browse/WICKET-1637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Ertl updated WICKET-1637: ------------------------------- Attachment: wicket-1637-modal-window-reuse.patch would be great if you could apply this patch for 1.4 _and_ 1.3 > 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 > Attachments: wicket-1637-modal-window-reuse.patch > > > I use one ModalWindow in my page to display several types of popups in it. > <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 stored. > the fix is to remove the custom component when using setPageCreator(), and to > remove the page creator when using setContent() > fix is attached -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.