src/main/java/org/efaps/ui/wicket/components/modalwindow/UpdateParentCallback.java
@Override
    public void onClose(final AjaxRequestTarget _target)
    {
        if (this.modalwindow.isUpdateParent()) {
            final Object object = this.pageReference.getPage().getDefaultModelObject();
            try {
                if (object instanceof AbstractUIObject) {

                    final AbstractUIObject uiObject = (AbstractUIObject) object;
                    if (this.clearmodel) {
                        uiObject.resetModel();
                    }
                    AbstractContentPage page = null;

                    if (uiObject instanceof UITable) {
                        page = new TablePage(Model.of((UITable) uiObject), ((AbstractContentPage) this.pageReference
                                        .getPage()).getModalWindow(), ((AbstractContentPage) this.pageReference
                                                        .getPage()).getCalledByPageReference());
                    } else if (uiObject instanceof UIForm) {
                        page = new FormPage(Model.of((UIForm) uiObject), ((AbstractContentPage) this.pageReference
                                        .getPage()).getModalWindow(), ((AbstractContentPage) this.pageReference
                                                        .getPage()).getCalledByPageReference());
                    } else if (uiObject instanceof UIStructurBrowser) {
                        page = new StructurBrowserPage(Model.of((UIStructurBrowser) uiObject),
                                        ((AbstractContentPage) this.pageReference.getPage()).getModalWindow(),
                                        ((AbstractContentPage) this.pageReference.getPage())
                                                        .getCalledByPageReference());
                    }
                    RequestCycle.get().setResponsePage(page);
                } else if (object instanceof UIGrid) {
                    final UIGrid uiGrid = (UIGrid) object;
                    uiGrid.reload();
                    RequestCycle.get().setResponsePage(new GridPage(Model.of(uiGrid)));
                }
            } catch (final EFapsException e) {
                RequestCycle.get().setResponsePage(new ErrorPage(e));
            }
        }
    }
@Override
    public void onClose(final AjaxRequestTarget _target)
    {
        if (this.modalwindow.isUpdateParent()) {
            final Object object = this.pageReference.getPage().getDefaultModelObject();
            try {
                if (object instanceof AbstractUIObject) {

                    final AbstractUIObject uiObject = (AbstractUIObject) object;
                    if (this.clearmodel) {
                        uiObject.resetModel();
                    }
                    AbstractContentPage page = null;

                    if (uiObject instanceof UITable) {
                        page = new TablePage(Model.of((UITable) uiObject), ((AbstractContentPage) this.pageReference
                                        .getPage()).getModalWindow(), ((AbstractContentPage) this.pageReference
                                                        .getPage()).getCalledByPageReference());
                    } else if (uiObject instanceof UIForm) {
                        page = new FormPage(Model.of((UIForm) uiObject), ((AbstractContentPage) this.pageReference
                                        .getPage()).getModalWindow(), ((AbstractContentPage) this.pageReference
                                                        .getPage()).getCalledByPageReference());
                    } else if (uiObject instanceof UIStructurBrowser) {
                        page = new StructurBrowserPage(Model.of((UIStructurBrowser) uiObject),
                                        ((AbstractContentPage) this.pageReference.getPage()).getModalWindow(),
                                        ((AbstractContentPage) this.pageReference.getPage())
                                                        .getCalledByPageReference());
                    }
                    RequestCycle.get().setResponsePage(page);
                } else if (object instanceof UIGrid) {
                    final UIGrid uiGrid = (UIGrid) object;
                    uiGrid.reload();
                    RequestCycle.get().setResponsePage(new GridPage(Model.of(uiGrid)));
                }
            } catch (final EFapsException e) {
                RequestCycle.get().setResponsePage(new ErrorPage(e));
            }
        }
    }
Method is executed on close of the modal window.

@param _target Target