Package com.jalios.jcms.taglib
Class WysiwygTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.jalios.jcms.taglib.WysiwygTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class WysiwygTag extends javax.servlet.jsp.tagext.BodyTagSupport
This tag wysiwyg generated code.- Version:
- $Revision: 136220 $
- Author:
- Jean-Philippe Encausse
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Constructor Summary
Constructors Constructor Description WysiwygTag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clean()
int
doAfterBody()
void
setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map)
void
setCss(java.lang.String css)
void
setData(Data data)
void
setField(java.lang.String field)
void
setTruncateLength(int truncateLength)
void
setTruncateSuffix(java.lang.String truncateSuffix)
static void
wrapWysiwygInlineEdition(javax.servlet.jsp.JspWriter writer, JcmsJspContext jcmsContext, java.lang.String html, Data data, java.lang.String fieldName)
Print the specified HTML in the JspWriter, wrapped with the required HTML to provide inline edition of the corresponding field, if authorized for the current logged member and specified field option.-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCss
public void setCss(java.lang.String css)
-
setData
public void setData(Data data)
-
setField
public void setField(java.lang.String field)
-
setAttributeMap
public void setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map)
-
setTruncateLength
public void setTruncateLength(int truncateLength)
-
setTruncateSuffix
public void setTruncateSuffix(java.lang.String truncateSuffix)
-
clean
protected void clean()
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException
- Specified by:
doAfterBody
in interfacejavax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
wrapWysiwygInlineEdition
public static void wrapWysiwygInlineEdition(javax.servlet.jsp.JspWriter writer, JcmsJspContext jcmsContext, java.lang.String html, Data data, java.lang.String fieldName) throws java.io.IOException
Print the specified HTML in the JspWriter, wrapped with the required HTML to provide inline edition of the corresponding field, if authorized for the current logged member and specified field option.In current implementation, authorization to "inline edit" an field is granted if :
- Member is authorized to work on specified data
- Valid TypeFieldEntry is found for specified field name
- Field is declared as wiki or wysiwyg
- Field is NOT multivalued (I18N field are authorized)
- Parameters:
writer
- the current JspWriter in which to output the wysiwyg (required, must not be null)jcmsContext
- the current JcmsJspContext (required, must not be null)html
- the html outputdata
- the data for which the html is being is being printedfieldName
- the name of the field for which the html is being printed- Throws:
java.io.IOException
- in case html cannot be printed in writer
-
-