THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
modalWindow.setWindowClosedCallback(new WindowClosedCallback(){ private static final long serialVersionUID = 1L; @Override public void onClose(AjaxRequestTarget target){ target.addComponent(parentPage); } }); |
An alternative approach would be to do it on the client side:
Code Block |
---|
public class MyPopupCloseLink extends PopupCloseLink {
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("onclick", "window.parent.refresh();");
}
}
|
// TODO : Add other examples