| Apache Wicket > Framework Documentation > Reference library > How to do things in Wicket > Forms > Pass form input from Modal Window back to the caller page |
... chooserWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { yourTextField.setModelObject(chooserPanel.getYourValue()); target.addComponent(yourTextField); } }); ...