Hello, I'm experiencing strange behavior in wicket 1.5, which works perfect with wicket 1.4.
2 pages: - ModalWindowPage (abstract class) * this page is most of the time used in modalwindow (but not necessary) * has an abstract function to pass the value chosen on the page - HomePage * this page has model * has modalwindow with ModalWindowPage on it. The abstract function changes the model of the page. After the modalwindow closes (the modal value has been set in the abstract function that has been overridden), I print the value of the model (in the setWindowClosedCallback). Here I can see that the model value isn't adjusted. This worked perfectly in wicket 1.4. This still works in wicket 1.5 when using panel on the modalwindow instead of a page. possible solutions: change to panel: no can do, because I want to upload a file in my modalwindow pass the PageReference to the constructor of ModalWindowPage: I'm not only calling a modalwindow with ModalWindowPage on my HomePage, but also on other pages, and even on panels. So I would have to build in a whole bunch of tests just to get the value on my correct page. That's why I used abstract functions in the first place. Hope someone can help me with this one !! If I should provide some more code or information, please let me know. Thanks in advance! Kind Regards, marieke Vandamme -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ModalWindow-with-page-abstract-functions-do-not-update-model-correct-tp3596526p3596526.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
