TagLib: Calendar

deleteTask

Description

This tag deletes the specified task from the current calendar set. It profides the additional attribute(modifier) for deleting the recurring task. If an error occurs during processing, the tag body will be evaluated.

Tag Body

JSP

Restrictions

If the name attribute is not specified then a parent task tag is used to find the event to operate on.

Attributes

The tag has the following attributes:

Attribute

Description

Req'd?

name Name of the task bean to delete. No
modifier
Specifies how to update an existing task. Can accept a string
RecurrencePattern.THIS_INSTANCE This task instance only
RecurrencePattern.THIS_AND_FUTURE This and all future occurances
RecurrencePattern.THIS_AND_PRIOR This and previous occurances.
RecurrencePattern.THIS_AND_ALL This and all occurances
No

Properties

None

Example(s)

<%-- delete a task by name --%>
<socs:task id="task1"/>
<socs:deleteTask name="task1">
...delete failed...
</socs:deleteTask>

<%-- delete a task and all future occurances--%>
<socs:task>
<socs:deleteTask modifier="<%= RecurrencePatten.THIS_INSTANCE %>">
...delete failed...
</socs:deleteTask>
</socs:task>