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) {
/**
*
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
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
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
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
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
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
*
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