Class CalendarEntryTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarEntryTag
- All Implemented Interfaces:
Serializable,IterationTag,JspTag,Tag
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:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields 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
Modifier and TypeMethodDescriptionintChecks if there are further entries for the current date, and saves the next entry into the request.intRenders the entries for the current date and saves the current entry into the request.(package private) booleanReturns whether there are further Calendar entries to display.voidSets the name of the request attribute to save the Calendar Entry into.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
CalendarEntryTag
public CalendarEntryTag()
-
-
Method Details
-
setName
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
Renders the entries for the current date and saves the current entry into the request.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classTagSupport- Returns:
- TagSupport#SKIP_BODY if no entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
- Throws:
JspException- if not contained within aCalendarTag
-
doAfterBody
Checks if there are further entries for the current date, and saves the next entry into the request.- Specified by:
doAfterBodyin interfaceIterationTag- Overrides:
doAfterBodyin classTagSupport- Returns:
- TagSupport#SKIP_BODY if no more entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
- Throws:
JspException- never
-