Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICEfaces EE Composite Components
Tag schedule

## The Schedule Composite Component

### Features

- The component is a viewer and does not create calendar events. You must implement CalendarViewService to supply the component with calendar events.
- The calendar has day, week, month and year views.
- Toggle between a 12 or 24 hour day view.
- CalendarEvents can be scheduled times or "all day" events.
- The component will only retrieve CalendarEvents associated with the current view.
- Configure the calendar to use the server timezone (default), hard code a timezone or use the EL to pass in a session scope timezone.
- The calendar has been styled to automatically resize to the available space.
- The calendar may be viewed in either 12 or 24 hour clock mode.

### How To Use

1. Use CalendarEvent to represent a calendar event in your model
2. Implement CalendarViewService in your model and register the implementing class as an application scope bean in faces-config
3. Register CalendarController as a request scope bean in faces-config. Bind this bean to the schedule tag's 'bean' attribute
4. Add the CalendarViewService implementation as a managed-property with property-name 'calendarViewService' to the CalendarController
5. Register CalendarViewUtil as a session scope bean in faces-config with managed-bean-name "calendarViewUtil"
6. By default the calendar will now format all Dates to the server TimeZone
7. To change the default TimeZone add a managed-property to "calendarViewUtil" named "timeZoneId" with a valid TimeZone id value
8. To apply a session scoped TimeZone to each instance of the calendar, use the EL in the "timeZoneId" value. For instance, #{User.timezoneId}
9. Add <ice-cc:schedule/> to page(s) where you want to view the schedule. Nest <ice-cc:css/> in your page <head> tag.

Example:

    <ice-cc:schedule bean="#{calendarController}" id="mySched"/>

Tag Information
Tag Class | javax.faces.webapp.FacetTag
TagExtraInfo Class | None
Body Content | tagdependent
Display Name | Schedule Composite Component

Attributes
Name | Required | Request-time | Type | Description
id | true | false | `java.lang.String` | A unique id for the component.
bean | true | false | `com.icesoft.faces.facelets.component.schedule.CalendarController` | Must resolve to an instance of CalendarController class
use24HourClock | false | false | `java.lang.Boolean` | Set the schedule to render in 24 hour clock mode (default false)

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.