Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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