TagLib: Calendar

task


Description The task tag makes the specified task bean properties available.
Tag Body JSP
Restrictions Only one of the id, name or index attributes should be used at a time. If no attributes are specified then the current task in the parent collection is used. 
Attributes

The tag has the following attributes:

Attribute Description Req'd?
id Specifies the id of the bean to create. No
name Specifies the name of the bean to use. No
index Specifies the index into the current event list of the event bean to find. No
Properties

The tag provides the following bean properties:

Property Description Type
Access
dueDate

DateTime
Get/Set
validDueDate

Boolean
Get
dueTime

Boolean
Get
dueTimeField

String
Get/Set
locationValid

Boolean
Get
completed

Boolean
Get
description Long description of the event. String
Get/Set
summary Short summary of the event. String
Get/Set
location Location of the event. String
Get/Set
status

String
Get/Set
allDay Whether the event lasts all day or not; boolean
Get/Set
recurrence Whether the event is part of a recurring series of events; boolean Boolean
Get
recurrencePattern
TBD
RecurrencePattern
Get/Set
reminderBean
TBD
Reminder
Get/Set
recurrenceModifier
TBD
String
Get/Set
modifier
Same as recurrenceModifier.
String
Get/Set
thisDate
TBD
String
Get/Set
Example(s)
<%-- create a 'new' task --%>
<cal:task id="new"/>

<%-- create a 'new' task with a summary --%>
<cal:task id="new">
<cal:set property="summary" value="Task Summary"/>
</cal:task>

<%-- use a previously created task --%>
<cal:task name="now">
Due Date = <cal:get property="dueDate"/>
Summary = <cal:get property="summary"/>
</cal:task>

<%-- current task in the task collection --%>
<cal:tasks iterate="true">
<cal:task>
...
</cal:task>
</cal:events>