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


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.

Reply via email to