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

public class SubSidebarTag extends SidebarTag

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:



      &lt;jive:sidebar bean="jivepageinfo"&gt; <br>
          &nbsp;&nbsp;&nbsp;&lt;a href="[url]" title="[description]"&gt;[name]&lt;/a&gt; <br>
          &nbsp;&nbsp;&nbsp;&lt;jive:subsidebar&gt; <br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href="[url]"&gt;[name]&lt;/a&gt; <br>
          &nbsp;&nbsp;&nbsp;&lt;/jive:subsidebar&gt; <br>
      &lt;/jive:sidebar&gt;

Note, this class has no attributes.

See Also:
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Sets the 'body' property to be equal to the body content of this tag.
    int
    Looks for the parent SidebarTag class, throws an error if not found.
    Returns the body content of this tag.
    void
    Sets the body content of this tag.

    Methods inherited from class org.jivesoftware.admin.SidebarTag

    getCss, getCurrentcss, getHeadercss, getSubsidebarTag, setCss, setCurrentcss, setHeadercss, setSubSidebar

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

    • SubSidebarTag

      public SubSidebarTag()
  • Method Details

    • getBody

      public String getBody()
      Returns the body content of this tag.
      Returns:
      the body of the tag
    • setBody

      public void setBody(String body)
      Sets the body content of this tag.
      Parameters:
      body - the body of this tag
    • doStartTag

      public int doStartTag() throws javax.servlet.jsp.JspException
      Looks for the parent SidebarTag class, throws an error if not found. If found, BodyTag.EVAL_BODY_BUFFERED is returned.
      Specified by:
      doStartTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class SidebarTag
      Returns:
      BodyTag.EVAL_BODY_BUFFERED if no errors.
      Throws:
      javax.servlet.jsp.JspException - if a parent SidebarTag is not found.
    • doEndTag

      public int doEndTag() throws javax.servlet.jsp.JspException
      Sets the 'body' property to be equal to the body content of this tag. Calls the SidebarTag.setSubSidebar(SubSidebarTag) method of the parent tag.
      Specified by:
      doEndTag in interface javax.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class SidebarTag
      Returns:
      Tag.EVAL_PAGE
      Throws:
      javax.servlet.jsp.JspException - if an error occurs.