Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String css  
      protected Data data  
      protected java.lang.String prefix  
      static java.lang.String REVISION  
      protected java.lang.String suffix  
      protected java.lang.String title  
      • Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        bodyContent
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.BodyTag

        EVAL_BODY_BUFFERED, EVAL_BODY_TAG
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.jsp.tagext.Tag

        getParent, setPageContext, setParent
    • Field Detail

      • 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
    • Constructor Detail

      • RecommendationTag

        public RecommendationTag()
    • 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
      • doAfterBody

        public int doAfterBody()
                        throws javax.servlet.jsp.JspException
        Specified by:
        doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
        Overrides:
        doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag 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
      • 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)