%@ page import="org.opencms.workplace.explorer.*" %><% // initialize the workplace class CmsNewResourceXmlContent wp = new CmsNewResourceXmlContent(pageContext, request, response); //////////////////// start of switch statement switch (wp.getAction()) { case CmsNewResource.ACTION_CANCEL: //////////////////// ACTION: cancel button pressed wp.actionCloseDialog(); break; case CmsNewResource.ACTION_OK: //////////////////// ACTION: ok button pressed wp.actionSelect(); break; case CmsNewResource.ACTION_SUBMITFORM: //////////////////// ACTION: resource name specified and form submitted wp.actionCreateResource(); if (wp.isResourceCreated()) { wp.actionEditProperties(); // redirects only if the edit properties option was checked } break; case CmsNewResourceXmlContent.ACTION_CHOOSEMODEL: //////////////////// ACTION: choose the model file for the new resource break; case CmsNewResource.ACTION_NEWFORM: case CmsNewResource.ACTION_DEFAULT: //////////////////// ACTION: show the form to specify the resource name and the edit properties checkbox wp.setParamAction(wp.DIALOG_CHECKMODEL); %><%= wp.htmlStart("help.explorer.new.file") %> <%= wp.bodyStart("dialog") %> <%= wp.dialogStart() %> <%= wp.dialogContentStart(wp.getParamTitle()) %>
<%= wp.dialogEnd() %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% } %>