/** * Performs the cleanup body action of the editor.<p> */ public void actionCleanupBodyElement() { try { // save eventually changed content of the editor to the temporary file Locale oldLocale = CmsLocaleManager.getLocale(getParamOldelementlanguage()); performSaveContent(getParamOldelementname(), oldLocale); } catch (CmsException e) { // show error page try { showErrorPage(this, e); } catch (JspException exc) { // should usually never happen if (LOG.isInfoEnabled()) { LOG.info(exc); } } } }
/** * Performs the cleanup body action of the editor.<p> */ public void actionCleanupBodyElement() { try { // save eventually changed content of the editor to the temporary file Locale oldLocale = CmsLocaleManager.getLocale(getParamOldelementlanguage()); performSaveContent(getParamOldelementname(), oldLocale); } catch (CmsException e) { // show error page try { showErrorPage(this, e); } catch (JspException exc) { // should usually never happen if (LOG.isInfoEnabled()) { LOG.info(exc); } } } }
/** * Performs the change body action of the editor.<p> */ public void actionChangeBodyElement() { try { // save eventually changed content of the editor to the temporary file Locale oldLocale = CmsLocaleManager.getLocale(getParamOldelementlanguage()); performSaveContent(getParamOldelementname(), oldLocale); } catch (CmsException e) { // show error page try { showErrorPage(this, e); } catch (JspException exc) { // should usually never happen if (LOG.isInfoEnabled()) { LOG.info(exc); } } } // re-initialize the element name if the language has changed if (!getParamElementlanguage().equals(getParamOldelementlanguage())) { initBodyElementName(getParamOldelementname()); } // get the new editor content initContent(); }
/** * Performs the change body action of the editor.<p> */ public void actionChangeBodyElement() { try { // save eventually changed content of the editor to the temporary file Locale oldLocale = CmsLocaleManager.getLocale(getParamOldelementlanguage()); performSaveContent(getParamOldelementname(), oldLocale); } catch (CmsException e) { // show error page try { showErrorPage(this, e); } catch (JspException exc) { // should usually never happen if (LOG.isInfoEnabled()) { LOG.info(exc); } } } // re-initialize the element name if the language has changed if (!getParamElementlanguage().equals(getParamOldelementlanguage())) { initBodyElementName(getParamOldelementname()); } // get the new editor content initContent(); }
String elementName = getParamElementname(); if (CmsStringUtil.isEmpty(elementName)) { elementName = getParamOldelementname();
String elementName = getParamElementname(); if (CmsStringUtil.isEmpty(elementName)) { elementName = getParamOldelementname();
&& getParamElementname().equals(getParamOldelementname())) { if (CmsStringUtil.isNotEmpty(getParamElementlanguage()) && getParamElementlanguage().equals(getParamOldelementlanguage())) {
&& getParamElementname().equals(getParamOldelementname())) { if (CmsStringUtil.isNotEmpty(getParamElementlanguage()) && getParamElementlanguage().equals(getParamOldelementlanguage())) {