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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to