Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Andrea Del Bene
Hi, your last version (the one using inter-component events) works fine if you pass ModalWindowPage PageReference instead of page instance, i.e: public ModalWindowPage(final PageReference pageReference){ add(new AjaxLink(btn) { /** *

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Marieke Vandamme
Hello, 1. And if I want to use ModalWindow with ModalWindowPage from a Panel? I can pass the PageReference to, but than I will have to catch the event on each page the panel is added.. Not really handy when using Panel as reusable item on many pages.. 2. Don't you find it easier yourself to use

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-16 Thread Andrea Del Bene
Right, I agree. As soon as possible I will open a JIRA issue. Hello, 1. And if I want to use ModalWindow with ModalWindowPage from a Panel? I can pass the PageReference to, but than I will have to catch the event on each page the panel is added.. Not really handy when using Panel as reusable

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Marieke Vandamme
Hello, Thanks for the response ! I'm not sure if the following code is what you want. I just update the pageValue variable on the HomePage in the abstract function 'linkClicked'. Following code is inside the HomePage constructor: pageValue = initial modal value; final ModalWindow

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Marieke Vandamme
Hi, I just tried it with the inter-component events, and it's the same problem as with the abstract functions.. Please try my code: HomePage: public class HomePage extends WebPage { @Override public void onEvent(IEvent? event) { super.onEvent(event); if

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-15 Thread Andrea Del Bene
Hi Marieke , I've tried your code and I have your same problem. Tomorrow I will try to investigate further and maybe I will create an issue. Hi, I just tried it with the inter-component events, and it's the same problem as with the abstract functions.. Please try my code: HomePage: public

Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Marieke Vandamme
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 *

Re: Wicket 1.5 - ModalWindow with page - abstract functions do not update model correct

2011-06-14 Thread Andrea Del Bene
Hi Marieke, please attach the code that should modify HomePage's model. Anyway, to solve this problem you could use the new inter-component events mechanism included with Wicket 1.5: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Intercomponentevents Just