TagLib: Calendar

storeTask

Description

This tag stores the specified task into the current calendar set. It can either store a new task or update an existing event. If an error occurs during processing, the tag body will be evaluated. It has the additional attribute of modifier which is not available in  <cal:storetask>. 

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. The modifier attribute should only be used to update an existing task

Attributes

The tag has the following attributes:

Attribute

Description

Req'd?

name Name of the event bean to store. 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)

<%-- store an task by name --%>
<cal:task id="task1">
<socs:storeTask name="task1">
...store failed...
</socs:storeTask>

<%-- store an event and all future occurances--%>
<cal:task>
<socs:storeTask modifier="<%= RecurrencePatten.THIS_INSTANCE%">
...store failed...
</socs:storeTask>
</cal:task>