01: /**
02: *
03: */package wicket.examples.ajax.builtin.modal;
04:
05: import wicket.ajax.AjaxRequestTarget;
06: import wicket.ajax.markup.html.AjaxLink;
07: import wicket.extensions.ajax.markup.html.modal.ModalWindow;
08: import wicket.markup.html.WebPage;
09:
10: /**
11: * @author Matej Knopp
12: *
13: */
14: public class ModalContent2Page extends WebPage {
15:
16: /**
17: *
18: */
19: public ModalContent2Page() {
20: add(new AjaxLink("close") {
21: public void onClick(AjaxRequestTarget target) {
22: ModalWindow.close(target);
23: }
24: });
25:
26: }
27:
28: }
|