Hi,
when I try to migrate a ModalWindow to ModalDialog i came accross this:
add(new AjaxLink<Void>("edit") {
@Override
public void onClick(AjaxRequestTarget target) {
getModalWindow().setModel(ReferenceEditorPanel.this.getModel());
getModalWindow().setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {
public void onClose(AjaxRequestTarget target) {
target.add(ReferenceEditorPanel.this);
ReferenceEditorPanel.this.onUpdate(target);
}
});
getModalWindow().show(target);
}
});
-> What would a correct way be for the setWindowClosedCallback? Have only see
some onOk(AjaxRequestTarget) and onCancel(AjaxRequestTarget)?
Best,
KB
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]