TagLib: Calendar

event

Description

This tag makes the specified event 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 event in the parent collection is used. The event properties are only valid from the start tag to the end tag.

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

Access

If Sun-One
Only
startTime Start time of the event; datetime. Get/Set
endTime End time of the event; datetime. Get/Set
description Long description of the event. Get/Set
summary Short summary of the event. Get/Set
location Location of the event. 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 Get
recurrencePattern
RecurrencePattern of this event
Get/Set

recurrenceModifier
RecurrencePattern.THIS_INSTANCE
RecurrencePattern.THIS_AND_FUTURE
Get/Set

modifier
Same as recurrenceModifier for backward compatible.
Get/Set

thisDate
String used to store the date for temparory purpose
Get/Set

reply
Get and set the rsvp status of this user as an attendee in this event.Only Sun-One supported valid values
Set
Only Sun-One
attendees
The user invites others to this event
Get/Set
Only Sun-One
removedAttendee Remove any existing invitees to this event
Set
Only Sun-One
userTheOrganizer Boolean: Indicates whether user is the organizer of this event. Get
Only Sun-One
reminderBean
ReminderBean for this event
Get/Set
Only Sun-One

Example(s)

<%-- create a 'new' event --%>
<cal:event id="new"/>

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

<%-- use a previously created event --%>
<cal:event name="now">
Start = <cal:get property="startTime"/>
End = <cal:get property="endTime"/>
Summary = <cal:get property="summary"/>
</cal:event>

<%-- retrieve an event by id --%>
<cal:event id="event" eventid="$(eid)">
<cal:set property="summary" value="new summary"/>
</cal:event>

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