Class CalendarEntryTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarEntryTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class CalendarEntryTag extends TagSupport
A JSP tag to save Calendar entries to the request context for rendering to a JSP.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • CalendarEntryTag

      public CalendarEntryTag()
  • Method Details

    • setName

      public void setName(String attrName)
      Sets the name of the request attribute to save the Calendar Entry into.
      Parameters:
      attrName - the request attribute name
    • hasMoreEntries

      boolean hasMoreEntries()
      Returns whether there are further Calendar entries to display.
      Returns:
      TRUE if there are more entries, otherwise FALSE
    • doStartTag

      public int doStartTag() throws JspException
      Renders the entries for the current date and saves the current entry into the request.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport
      Returns:
      TagSupport#SKIP_BODY if no entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
      Throws:
      JspException - if not contained within a CalendarTag
    • doAfterBody

      public int doAfterBody() throws JspException
      Checks if there are further entries for the current date, and saves the next entry into the request.
      Specified by:
      doAfterBody in interface IterationTag
      Overrides:
      doAfterBody in class TagSupport
      Returns:
      TagSupport#SKIP_BODY if no more entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
      Throws:
      JspException - never