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.BodyTagSupportThis tag wysiwyg generated code.- Author:
- Jean-Philippe Encausse
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description WysiwygTag()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclean()intdoAfterBody()voidsetAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map)voidsetCss(java.lang.String css)voidsetData(Data data)voidsetField(java.lang.String field)voidsetTruncateLength(int truncateLength)voidsetTruncateSuffix(java.lang.String truncateSuffix)static voidwrapWysiwygInlineEdition(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.BodyTagSupportdoEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 - 
Methods inherited from class javax.servlet.jsp.tagext.TagSupportfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
- 
 
- 
- 
- 
Method Detail- 
setCsspublic void setCss(java.lang.String css) 
 - 
setDatapublic void setData(Data data) 
 - 
setFieldpublic void setField(java.lang.String field) 
 - 
setAttributeMappublic void setAttributeMap(java.util.Map<java.lang.String,java.lang.Object> map) 
 - 
setTruncateLengthpublic void setTruncateLength(int truncateLength) 
 - 
setTruncateSuffixpublic void setTruncateSuffix(java.lang.String truncateSuffix) 
 - 
cleanprotected void clean() 
 - 
doAfterBodypublic int doAfterBody() throws javax.servlet.jsp.JspException- Specified by:
- doAfterBodyin interface- javax.servlet.jsp.tagext.IterationTag
- Overrides:
- doAfterBodyin class- javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
- javax.servlet.jsp.JspException
 
 - 
wrapWysiwygInlineEditionpublic static void wrapWysiwygInlineEdition(javax.servlet.jsp.JspWriter writer, JcmsJspContext jcmsContext, java.lang.String html, Data data, java.lang.String fieldName) throws java.io.IOExceptionPrint 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 output
- data- the data for which the html is being is being printed
- fieldName- the name of the field for which the html is being printed
- Throws:
- java.io.IOException- in case html cannot be printed in writer
 
 
- 
 
-