Class 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:
    Serialized Form
    • 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
      SubSidebarTag()  
    • Constructor Detail

      • SubSidebarTag

        public SubSidebarTag()
    • Method Detail

      • 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.