if (CmsStringUtil.isNotEmpty(getParamElementname()) && getParamElementname().equals(getParamOldelementname())) { if (CmsStringUtil.isNotEmpty(getParamElementlanguage()) && getParamElementlanguage().equals(getParamOldelementlanguage())) { if (m_page.hasValue(getParamElementname(), getElementLocale())) { elementData = m_page.getStringValue(getCms(), getParamElementname(), getElementLocale()); } else { m_page.addValue(getParamElementname(), getElementLocale());
if (CmsStringUtil.isNotEmpty(getParamElementname()) && getParamElementname().equals(getParamOldelementname())) { if (CmsStringUtil.isNotEmpty(getParamElementlanguage()) && getParamElementlanguage().equals(getParamOldelementlanguage())) { if (m_page.hasValue(getParamElementname(), getElementLocale())) { elementData = m_page.getStringValue(getCms(), getParamElementname(), getElementLocale()); } else { m_page.addValue(getParamElementname(), getElementLocale());
List<String> options = new ArrayList<String>(elementList.size()); List<String> values = new ArrayList<String>(elementList.size()); String elementName = getParamElementname(); if (CmsStringUtil.isEmpty(elementName)) { elementName = getParamOldelementname();
List options = new ArrayList(elementList.size()); List values = new ArrayList(elementList.size()); String elementName = getParamElementname(); if (CmsStringUtil.isEmpty(elementName)) { elementName = getParamOldelementname();
/** * @see org.opencms.workplace.editors.CmsEditor#actionSave() */ @Override public void actionSave() throws JspException { try { // save content to temporary file performSaveContent(getParamElementname(), getElementLocale()); // copy the temporary file content back to the original file commitTempFile(); // set the modified parameter setParamModified(Boolean.TRUE.toString()); } catch (CmsException e) { showErrorPage(e); } if (getAction() != ACTION_CANCEL) { // save successful, set save action setAction(ACTION_SAVE); } }
/** * @see org.opencms.workplace.editors.CmsEditor#actionSave() */ @Override public void actionSave() throws JspException { try { // save content to temporary file performSaveContent(getParamElementname(), getElementLocale()); // copy the temporary file content back to the original file commitTempFile(); // set the modified parameter setParamModified(Boolean.TRUE.toString()); } catch (CmsException e) { showErrorPage(e); } if (getAction() != ACTION_CANCEL) { // save successful, set save action setAction(ACTION_SAVE); } }
/** * Performs the preview page action in a new browser window.<p> * * @throws IOException if redirect fails * @throws JspException if inclusion of error page fails */ public void actionPreview() throws IOException, JspException { try { // save content of the editor to the temporary file performSaveContent(getParamElementname(), getElementLocale()); } catch (CmsException e) { // show error page showErrorPage(this, e); } // redirect to the temporary file with current active element language String param = "?" + org.opencms.i18n.CmsLocaleManager.PARAMETER_LOCALE + "=" + getParamElementlanguage(); sendCmsRedirect(getParamTempfile() + param); }
/** * Performs the preview page action in a new browser window.<p> * * @throws IOException if redirect fails * @throws JspException if inclusion of error page fails */ public void actionPreview() throws IOException, JspException { try { // save content of the editor to the temporary file performSaveContent(getParamElementname(), getElementLocale()); } catch (CmsException e) { // show error page showErrorPage(this, e); } // redirect to the temporary file with current active element language String param = "?" + org.opencms.i18n.CmsLocaleManager.PARAMETER_LOCALE + "=" + getParamElementlanguage(); sendCmsRedirect(getParamTempfile() + param); }