Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

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 for which the Required value is “No”:

id

Specifies the id of the bean to create.

name

Specifies the name of the bean to use.

index

Specifies the index into the current event list of the event bean to find.

Properties

The tag provides the following bean properties for which the Type values are “DateTime”, “Boolean”, “String”, and “ReminderBean” and the Access value is “Get/Set”:

dueDate

The time at which the task is due.

validDueDate

If the DueDate is valid.

dueTime

If the task is due or not.

dueTimeField

If the dueTime is valid.

locationValid

n/a

completed

n/a

description

Long description of the event.

summary

Short summary of the event.

location

Location of the event.

status

n/a

allDay

Whether the event lasts all day or not; boolean.

thisDate

String to store the date for temparory purpose.

recurrencePattern

The recurrence pattern for the Task.

reminderBean

The reminder for the task.

recurrenceModifier

The instances of task needs to be modified. RecurrencePattern.THIS_INSTANCE and RecurrencePattern.THIS_AND_FUTURE.

modifier

Same as recurrenceModifier.

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>