Hello,
i'm having problems with the modal window. It shows up fine when I click my
link the first time, but after closing the window with the 'X', it won't
open again.
I don't know if I'm using it wrong or if it's a bug.
Any help is welcome ! thanks. Marieke.
My code :
public class TestModalWindow extends WebPage {
public TestModalWindow() {
final ModalWindow modal = new ModalWindow("dataChooser");
add(modal);
final MyChooser myChooser = new MyChooser(modal);
modal.setPageCreator(new ModalWindow.PageCreator() {
public Page createPage() {
return myChooser;
}
});
add(new AjaxLink("lnkOpen") {
public void onClick(AjaxRequestTarget target) {
myChooser.reload(target);
}
});
}
public class MyChooser extends WebPage {
private ModalWindow window;
public MyChooser(ModalWindow w) {
this.window = w;
}
public void reload(AjaxRequestTarget target) {
this.window.show(target);
}
}
}
--
View this message in context:
http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16850180.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]