Class VoteTag

  • All Implemented Interfaces:
    VoteConstants, 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 VoteTag
    extends javax.servlet.jsp.tagext.BodyTagSupport
    implements VoteConstants
    Like Tag used to display an html link to perform a like on an element
    Since:
    jcms-8.0.0
    Version:
    $Revision: 102341 $
    See Also:
    Serialized Form
    • Field Detail

      • css

        protected java.lang.String css
      • templateProperty

        protected java.lang.String templateProperty
      • ajaxRefreshDiv

        protected boolean ajaxRefreshDiv
      • usage

        protected int usage
    • Constructor Detail

      • VoteTag

        public VoteTag()
    • Method Detail

      • clean

        protected void clean()
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.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 used
        ex - the exception
        pageContext - the given pageContext
      • doEndTag

        public int doEndTag()
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
      • getCss

        public java.lang.String getCss()
      • setCss

        public void setCss​(java.lang.String css)
      • getTemplateProperty

        public java.lang.String getTemplateProperty()
      • setTemplateProperty

        public void setTemplateProperty​(java.lang.String templateProperty)
      • getUsage

        public int getUsage()
      • setUsage

        public void setUsage​(int usage)
      • setAjaxRefreshDiv

        public void setAjaxRefreshDiv​(boolean ajaxRefreshDiv)