TagLib: Calendar

task

Description

This 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

If Only Sun-One
dueDate
The time at which the task is due DateTime
Get/Set

validDueDate
If the DueDate is Valid
Boolean
Get

dueTime
if The task is due or not
Boolean
Get

dueTimeField
if the dueTime is valid
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/SetSun-One only
status

String
Get/Set

allDay Whether the event lasts all day or not; boolean
Get/Set
thisDate
String to store the date for temparory purpose
String
Get/Set

recurrencePattern The recurrence pattern for the Task
String
Get/Set
Sun-One only
reminderBean
The reminder for the task
ReminderBean
Get/Set
Sun-One Only
recurrenceModifier The instances of task needs to be modified RecurrencePattern.THIS_INSTANCE
RecurrencePattern.THIS_AND_FUTURE
String
Get/Set
Sun-One Only
modifier
same as recurrenceModifier String
Get/Set
Sun-One Only

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>