/** * @see org.opencms.workplace.CmsWorkplace#paramsAsHidden() */ @Override public String paramsAsHidden() { if (getAction() != ACTION_ERROR) { return super.paramsAsHidden(); } // on an error page, also output the widget parameters StringBuffer result = new StringBuffer(); result.append(super.paramsAsHidden()); result.append('\n'); result.append(widgetParamsAsHidden()); return result.toString(); }
/** * @see org.opencms.workplace.CmsWorkplace#paramsAsHidden() */ @Override public String paramsAsHidden() { if (getAction() != ACTION_ERROR) { return super.paramsAsHidden(); } // on an error page, also output the widget parameters StringBuffer result = new StringBuffer(); result.append(super.paramsAsHidden()); result.append('\n'); result.append(widgetParamsAsHidden()); return result.toString(); }
if (getAction() == ACTION_ELEMENT_REMOVE) {
if (getAction() == ACTION_ELEMENT_REMOVE) {
/** * Writes the dialog html code, only if the <code>{@link #ACTION_DEFAULT}</code> is set.<p> * * @throws JspException if dialog actions fail * @throws IOException if writing to the JSP out fails, or in case of errors forwarding to the required result page */ public void writeDialog() throws IOException, JspException { if (isForwarded()) { return; } switch (getAction()) { case ACTION_CANCEL: case ACTION_ERROR: case ACTION_SAVE: break; case ACTION_DEFAULT: default: // ACTION: show dialog (default) setParamAction(DIALOG_SAVE); JspWriter out = getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); } }
/** * Writes the dialog html code, only if the <code>{@link #ACTION_DEFAULT}</code> is set.<p> * * @throws JspException if dialog actions fail * @throws IOException if writing to the JSP out fails, or in case of errors forwarding to the required result page */ public void writeDialog() throws IOException, JspException { if (isForwarded()) { return; } switch (getAction()) { case ACTION_CANCEL: case ACTION_ERROR: case ACTION_SAVE: break; case ACTION_DEFAULT: default: // ACTION: show dialog (default) setParamAction(DIALOG_SAVE); JspWriter out = getJsp().getJspContext().getOut(); out.print(defaultActionHtml()); } }
return; switch (getAction()) {
return; switch (getAction()) {