Package org.deltava.taglib.calendar
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, pageContext
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
-
Method Summary
Modifier and TypeMethodDescriptionint
Checks if there are further entries for the current date, and saves the next entry into the request.int
Renders the entries for the current date and saves the current entry into the request.(package private) boolean
Returns whether there are further Calendar entries to display.void
Sets 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:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in 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:
doAfterBody
in interfaceIterationTag
- Overrides:
doAfterBody
in classTagSupport
- Returns:
- TagSupport#SKIP_BODY if no more entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
- Throws:
JspException
- never
-