Package org.jivesoftware.admin
Class SubSidebarTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.jivesoftware.admin.SidebarTag
org.jivesoftware.admin.SubSidebarTag
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
A simple tag to gather its body content and pass it to the parent tag. This tag must be used
as a child of the SidebarTag.
Sample usage:
<jive:sidebar bean="jivepageinfo"> <br>
<a href="[url]" title="[description]">[name]</a> <br>
<jive:subsidebar> <br>
<a href="[url]">[name]</a> <br>
</jive:subsidebar> <br>
</jive:sidebar>
Note, this class has no attributes.
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jivesoftware.admin.SidebarTag
getCss, getCurrentcss, getHeadercss, getSubsidebarTag, setCss, setCurrentcss, setHeadercss, setSubSidebarMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
SubSidebarTag
public SubSidebarTag()
-
-
Method Details
-
getBody
Returns the body content of this tag.- Returns:
- the body of the tag
-
setBody
Sets the body content of this tag.- Parameters:
body- the body of this tag
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspExceptionLooks for the parent SidebarTag class, throws an error if not found. If found,BodyTag.EVAL_BODY_BUFFEREDis returned.- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classSidebarTag- Returns:
BodyTag.EVAL_BODY_BUFFEREDif no errors.- Throws:
javax.servlet.jsp.JspException- if a parent SidebarTag is not found.
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspExceptionSets the 'body' property to be equal to the body content of this tag. Calls theSidebarTag.setSubSidebar(SubSidebarTag)method of the parent tag.- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classSidebarTag- Returns:
Tag.EVAL_PAGE- Throws:
javax.servlet.jsp.JspException- if an error occurs.
-