/** * Used to close the current JSP dialog.<p> * * This method overwrites the close dialog method in the super class, * because in case a new folder was created before, after this dialog the tree view has to be refreshed.<p> * * It tries to include the URI stored in the workplace settings. * This URI is determined by the frame name, which has to be set * in the framename parameter.<p> * * @throws JspException if including an element fails */ @Override public void actionCloseDialog() throws JspException { if (isCreateIndexMode()) { // set the current explorer resource to the new created folder String updateFolder = CmsResource.getParentFolder(getSettings().getExplorerResource()); getSettings().setExplorerResource(updateFolder, getCms()); List folderList = new ArrayList(1); if (updateFolder != null) { folderList.add(updateFolder); } getJsp().getRequest().setAttribute(REQUEST_ATTRIBUTE_RELOADTREE, folderList); } super.actionCloseDialog(); }
/** * Used to close the current JSP dialog.<p> * * This method overwrites the close dialog method in the super class, * because in case a new folder was created before, after this dialog the tree view has to be refreshed.<p> * * It tries to include the URI stored in the workplace settings. * This URI is determined by the frame name, which has to be set * in the framename parameter.<p> * * @throws JspException if including an element fails */ @Override public void actionCloseDialog() throws JspException { if (isCreateIndexMode()) { // set the current explorer resource to the new created folder String updateFolder = CmsResource.getParentFolder(getSettings().getExplorerResource()); getSettings().setExplorerResource(updateFolder, getCms()); List<String> folderList = new ArrayList<String>(1); if (updateFolder != null) { folderList.add(updateFolder); } getJsp().getRequest().setAttribute(REQUEST_ATTRIBUTE_RELOADTREE, folderList); } super.actionCloseDialog(); }