Package com.jalios.jcms.taglib
Class RecommendationTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.jalios.jcms.taglib.RecommendationTag
-
- 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 RecommendationTag extends javax.servlet.jsp.tagext.BodyTagSupport
Like Tag used to display an html link to perform a like on an element- Since:
- jcms-8.0.0
- Version:
- $Revision: 79974 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecommendationTag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clean()
int
doAfterBody()
int
doEndTag()
int
doStartTag()
java.lang.String
getCss()
Data
getData()
java.lang.String
getPrefix()
java.lang.String
getSuffix()
java.lang.String
getTitle()
static void
printErrorMessage(java.lang.String jsp, java.lang.Exception ex, javax.servlet.jsp.PageContext pageContext)
Print an Exception message in log and in JSP (if developement mode)void
setCss(java.lang.String css)
void
setData(Data data)
void
setPrefix(java.lang.String prefix)
void
setSuffix(java.lang.String suffix)
void
setTitle(java.lang.String title)
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, 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
-
data
protected Data data
-
css
protected java.lang.String css
-
suffix
protected java.lang.String suffix
-
prefix
protected java.lang.String prefix
-
title
protected java.lang.String title
-
-
Method Detail
-
clean
protected void clean()
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
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
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
printErrorMessage
public static void printErrorMessage(java.lang.String jsp, java.lang.Exception ex, javax.servlet.jsp.PageContext pageContext)
Print an Exception message in log and in JSP (if developement mode)- Parameters:
jsp
- the JSP usedex
- the exceptionpageContext
- the given pageContext
-
getCss
public java.lang.String getCss()
-
setCss
public void setCss(java.lang.String css)
-
getData
public Data getData()
-
setData
public void setData(Data data)
-
getSuffix
public java.lang.String getSuffix()
-
setSuffix
public void setSuffix(java.lang.String suffix)
-
getPrefix
public java.lang.String getPrefix()
-
setPrefix
public void setPrefix(java.lang.String prefix)
-
getTitle
public java.lang.String getTitle()
-
setTitle
public void setTitle(java.lang.String title)
-
-