com.jalios.jcms.taglib
Class VoteTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.jalios.jcms.taglib.VoteTag
- All Implemented Interfaces:
- VoteConstants, 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$
- See Also:
- Serialized Form
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 com.jalios.jcms.vote.VoteConstants |
ALERT_DOMAIN, ALERT_NAME_NEGATIVE_VOTE, ALERT_NAME_POSITIVE_VOTE, ANONYMIZE_DOWNVOTE_PROP, ANONYMIZE_VOTE_PROP, CACHE_SIZE_PROP, DEFAULT_VOTE_TEMPLATE_PROP, DEFAULT_VOTELIST_TEMPLATE_PROP, ICON_VOTE_NEGATIVE_HL_PROP, ICON_VOTE_NEGATIVE_PROP, ICON_VOTE_POSITIVE_HL_PROP, ICON_VOTE_POSITIVE_PROP, PUBLICATION_ID_FIELD, RATING_FIELD, SEND_VOTE_NOTIFICATION_PROP, UI_VOTE_NEGATIVE, UI_VOTE_NEGATIVE_HL, UI_VOTE_POSITIVE, UI_VOTE_POSITIVE_HL, UNVOTABLE_TYPES_PROP, VOTE_DEFAULT_VALUE_PROP, VOTE_ENABLED_PROP, VOTE_TAG_USAGE_ACTION, VOTE_TAG_USAGE_VOTELIST |
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 |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, 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 |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
pub
protected Publication pub
css
protected String css
templateProperty
protected String templateProperty
ajaxRefreshDiv
protected boolean ajaxRefreshDiv
usage
protected int usage
VoteTag
public VoteTag()
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(String jsp,
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
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
getPub
public Publication getPub()
setPub
public void setPub(Publication pub)
getCss
public String getCss()
setCss
public void setCss(String css)
getTemplateProperty
public String getTemplateProperty()
setTemplateProperty
public void setTemplateProperty(String templateProperty)
getUsage
public int getUsage()
setUsage
public void setUsage(int usage)
setAjaxRefreshDiv
public void setAjaxRefreshDiv(boolean ajaxRefreshDiv)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.