Apache Wicket > Framework Documentation > Reference library > How to do things in Wicket > Forms > Pass form input from Modal Window back to the caller page
Added by Will Hoover, last edited by Will Hoover on Jan 18, 2008
...

chooserWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
	public void onClose(AjaxRequestTarget target) {

		yourTextField.setModelObject(chooserPanel.getYourValue());
		target.addComponent(yourTextField);

	}
});

...