Description

Calendar component based on Yahoo UI calendar widget

Screen Shot

API

component-family net.sf.yui4jsf
renderer-type net.sf.yui4jsf.component.CalendarRenderer
component-class net.sf.yui4jsf.component.calendar.Calendar
renderer-class net.sf.yui4jsf.component.calendar.CalendarRenderer
tag-class net.sf.yui4jsf.component.calendar.CalendarTag

Usage

<yui:calendar value="#{backingBean.date}"
				popup="{true|false}"
				title="Your Title"
				close="{true|false}"
				mode="{basic|text}"
				mindate="21.01.2000"
				maxdate="10.02.2010"
				showWeekdays="{true|false}"
				monthFormat="{short|medium|long}"
				weekdayFormat="{1char|short|medium|long}"
				startWeekday="{0-6}"
				showWeekHeader="{true|false}"
				showWeekFooter="{true|false}"
				hideBlankWeeks="{true|false}"
				enableLogging="{true|false}">
</yui:calendar>
            

Attributes

<yui:calendar>

Standard Attributes - id, rendered, binding, converter, validator, immediate, required.
value - A java.util.Date reference that the calendar is bound to
popup - Boolean value to display the calendar with a popup, default value is false.
title - Displays a title text at the top of calendar.
close - Displays a close icon the top of calendar.
mode - basic|text, Defines how the date will be selected; "basic" only displays a calendar, "text" displays inputtext next to calendar.
mindate - String representation of minimum selectable date, e.g. "22.01.1980"
maxdate - String representation of maximum selectable date, e.g. "10.02.2010"
showWeekdays - Boolean value to determine display of weekday headers
monthFormat - "short"|"medium"|"long", Format of the month title, default value is "long"
weekdayFormat - "1char"|"short"|"medium"|"long", Format of the weekday title, default value is "short"
startWeekday - 0-6, Specifies the start day of the week, default value is "0"
showWeekHeader - Determines whether to display row headers
showWeekFooter - Determines whether to display row footers
hideBlankWeeks - Boolean value to show/hide extra weeks that are outside of the current month
enableLogging - Enable Logging or not, default value is "false"

Instructions

see calendar*.jsp

Upcoming Features

- New "select" mode to set input with selection components
- Customizing popup button
- Events
- Styling

Additional Information

Internalization and Localization

Calendar language will be automatically managed according to the locale of the current request, see the Turkish and German calendar for examples. Also localization is currently done by using the pattern attribute of the calendar's date time converter. Type attribute of the converter(short, long dates) is not supported yet.