%@ page import=" org.opencms.workplace.CmsWorkplace, org.opencms.workplace.CmsDialog, org.opencms.workplace.commons.*, org.opencms.widgets.CmsCalendarWidget "%><% // initialize the workplace class CmsPreferences wp = new CmsPreferences(pageContext, request, response); //////////////////// start of switch statement switch (wp.getAction()) { case CmsDialog.ACTION_CANCEL: //////////////////// ACTION: cancel button pressed, leave dialog if (!"true".equals(wp.getParamSetPressed())) { // wp.actionCloseDialog(); //////////////////// ACTION: reload the workplace window after pressing "cancel" %>
<% break; } case CmsPreferences.ACTION_RELOAD: //////////////////// ACTION: reload the workplace window after pressing "ok" %> <% break; case CmsDialog.ACTION_OK: case CmsDialog.ACTION_SET: //////////////////// ACTION: save the preferences wp.actionSave(); break; case CmsPreferences.ACTION_CHPWD: //////////////////// ACTION: change the user password wp.actionChangePassword(); if (wp.getAction() == CmsPreferences.ACTION_ERROR) { break; } case CmsDialog.ACTION_DEFAULT: case CmsPreferences.ACTION_SWITCHTAB: default: //////////////////// ACTION: show tab dialog (default) wp.setParamAction(CmsDialog.DIALOG_OK); %><%= wp.htmlStart() %> <%= CmsCalendarWidget.calendarIncludes(wp.getLocale()) %> <%= wp.bodyStart("dialog", "onunload=\"top.closeTreeWin();\"") %> <%= wp.dialogStart() %> <%= wp.dialogEnd() %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% } //////////////////// end of switch action statement %>