org.rhq.enterprise.gui.legacy.taglib
Class RecentAlertsTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.rhq.enterprise.gui.legacy.taglib.RecentAlertsTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class RecentAlertsTag
- extends javax.servlet.jsp.tagext.TagSupport
A JSP tag that will get the recent alerts for a user and put them in the request context.
Attributes:
| name |
required |
default |
| var
| true |
N/A |
| sizeVar
| true |
N/A |
| maxAlerts
| false |
2 |
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| 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 |
int |
doEndTag()
|
int |
doStartTag()
Process the tag, generating and formatting the list. |
void |
release()
|
void |
setMaxAlerts(String maxAlerts)
Set the max number of alerts to get. |
void |
setSizeVar(String sizeVar)
Set the name of the request attribute that should hold the size of the list of alerts. |
void |
setVar(String var)
Set the name of the request attribute that should hold the list of alerts. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, 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 |
RecentAlertsTag
public RecentAlertsTag()
setVar
public void setVar(String var)
- Set the name of the request attribute that should hold the list of alerts.
- Parameters:
var - the name of the request attribute
setSizeVar
public void setSizeVar(String sizeVar)
- Set the name of the request attribute that should hold the size of the list of alerts.
- Parameters:
sizeVar - the name of the request attribute
setMaxAlerts
public void setMaxAlerts(String maxAlerts)
- Set the max number of alerts to get.
- Parameters:
maxAlerts - the max number of alerts
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Process the tag, generating and formatting the list.
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException - if the scripting variable can not be found or if there is an error processing the tag
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.TagSupport
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Specified by:
release in interface javax.servlet.jsp.tagext.Tag- Overrides:
release in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.