/** * Insert the end HTML for the direct edit buttons in manual mode (if required).<p> * * Same as closing the <code></cms:editable</code> tag after opening one in manual mode.<p> * * @param needsClose result of {@link #editableManualOpen()} should be the value for this parameter * * @throws JspException if something goes wrong */ public void editableManualClose(boolean needsClose) throws JspException { if (needsClose) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.MANUAL, null); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable /></code> tag.<p> * * The configured default direct edit provider is used.<p> * * @param isEditable include scriptlet only if true * * @throws JspException if something goes wrong */ public void editable(boolean isEditable) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.AUTO, null); } }
/** * Insert the end HTML for the direct edit buttons in manual mode (if required).<p> * * Same as closing the <code></cms:editable</code> tag after opening one in manual mode.<p> * * @param needsClose result of {@link #editableManualOpen()} should be the value for this parameter * * @throws JspException if something goes wrong */ public void editableManualClose(boolean needsClose) throws JspException { if (needsClose) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.MANUAL, null); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable /></code> tag.<p> * * The configured default direct edit provider is used.<p> * * @param isEditable include scriptlet only if true * * @throws JspException if something goes wrong */ public void editable(boolean isEditable) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.AUTO, null); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable file="..." /></code>tag.<p> * * For backward compatibility, this always uses the JSP include based direct edit provider<p>. * * @param isEditable include scriptlet only if true * @param filename file with scriptlet code * * @throws JspException if something goes wrong */ public void editable(boolean isEditable, String filename) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction( getJspContext(), CmsDirectEditJspIncludeProvider.class.getName(), CmsDirectEditMode.AUTO, filename); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable file="..." /></code>tag.<p> * * For backward compatibility, this always uses the JSP include based direct edit provider<p>. * * @param isEditable include scriptlet only if true * @param filename file with scriptlet code * * @throws JspException if something goes wrong */ public void editable(boolean isEditable, String filename) throws JspException { if (isEditable) { CmsJspTagEditable.editableTagAction( getJspContext(), CmsDirectEditJspIncludeProvider.class.getName(), CmsDirectEditMode.AUTO, filename); } }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable provider="..." mode="..." file="..." /></code>tag.<p> * * @param provider the direct edit provider class name * @param mode the direct edit mode to use * @param filename file with scriptlet code (may be <code>null</code>) * * @throws JspException if something goes wrong */ public void editable(String provider, String mode, String filename) throws JspException { CmsJspTagEditable.editableTagAction(getJspContext(), provider, CmsDirectEditMode.valueOf(mode), filename); }
/** * Includes the direct edit scriptlet, same as * using the <code><cms:editable provider="..." mode="..." file="..." /></code>tag.<p> * * @param provider the direct edit provider class name * @param mode the direct edit mode to use * @param filename file with scriptlet code (may be <code>null</code>) * * @throws JspException if something goes wrong */ public void editable(String provider, String mode, String filename) throws JspException { CmsJspTagEditable.editableTagAction(getJspContext(), provider, CmsDirectEditMode.valueOf(mode), filename); }
/** * Close the direct edit tag, also prints the direct edit HTML to the current page.<p> * * @return {@link #EVAL_PAGE} * * @throws JspException in case something goes wrong */ @Override public int doEndTag() throws JspException { if (m_firstOnPage || m_manualPlacement) { // only execute action for the first "editable" tag on the page (include file), or in manual mode editableTagAction(pageContext, m_provider, m_mode, m_file); } if (OpenCms.getSystemInfo().getServletContainerSettings().isReleaseTagsAfterEnd()) { // need to release manually, JSP container may not call release as required (happens with Tomcat) release(); } return EVAL_PAGE; }
/** * Close the direct edit tag, also prints the direct edit HTML to the current page.<p> * * @return {@link #EVAL_PAGE} * * @throws JspException in case something goes wrong */ @Override public int doEndTag() throws JspException { if (m_firstOnPage || m_manualPlacement) { // only execute action for the first "editable" tag on the page (include file), or in manual mode editableTagAction(pageContext, m_provider, m_mode, m_file); } if (OpenCms.getSystemInfo().getServletContainerSettings().isReleaseTagsAfterEnd()) { // need to release manually, JSP container may not call release as required (happens with Tomcat) release(); } return EVAL_PAGE; }
editableTagAction(pageContext, m_provider, m_mode, m_file);
/** * Insert the start HTML for the direct edit buttons in manual mode.<p> * * Same as opening the <code><cms:editable mode="manual"></code> tag.<p> * * @return <code>true</code> if HTML was inserted that needs to be closed * * @throws JspException if something goes wrong */ public boolean editableManualOpen() throws JspException { boolean result = false; if (!CmsFlexController.isCmsOnlineRequest(getJspContext().getRequest())) { // all this does NOT apply to the "online" project I_CmsDirectEditProvider eb = CmsJspTagEditable.getDirectEditProvider(getJspContext()); if ((eb != null)) { // check if the provider support manual placement of buttons if (eb.isManual(CmsDirectEditMode.MANUAL)) { // the provider supports manual placement of buttons result = true; CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.MANUAL, null); } } } return result; }
/** * Insert the start HTML for the direct edit buttons in manual mode.<p> * * Same as opening the <code><cms:editable mode="manual"></code> tag.<p> * * @return <code>true</code> if HTML was inserted that needs to be closed * * @throws JspException if something goes wrong */ public boolean editableManualOpen() throws JspException { boolean result = false; if (!CmsFlexController.isCmsOnlineRequest(getJspContext().getRequest())) { // all this does NOT apply to the "online" project I_CmsDirectEditProvider eb = CmsJspTagEditable.getDirectEditProvider(getJspContext()); if ((eb != null)) { // check if the provider support manual placement of buttons if (eb.isManual(CmsDirectEditMode.MANUAL)) { // the provider supports manual placement of buttons result = true; CmsJspTagEditable.editableTagAction(getJspContext(), null, CmsDirectEditMode.MANUAL, null); } } } return result; }
editableTagAction(pageContext, m_provider, m_mode, m_file);