How to Use the Popup Calendar Component
The Popup Calendar JSF component that was created by Edwin Goei allows
users to select an arbitrary date with the help of a popup Gregorian
calendar. The native model value object is a String in ISO 8601 date format
but a java.util.Date or java.sql.Date object can also be used and a
converter will be automatically applied. The tag library for the Popup
Calendar component can be accessed using the declaration:
<%@taglib prefix="ui" uri="http://java.sun.com/blueprints/ui/14"%>
An example of the JSF Popup Calendar component's use is as follows:
<ui:popupCalendar id="cal" localeString="zh_CN" value="#{CalendarBean.date}"/>
JSP
Tag Attributes
The Popup Calendar component supports
the following attributes.
- dateFormatPattern - Pattern to use for date format. A combination of the strings "yyyy", "MM", "dd", plus a separator character, with "yyyy" either first or last. If null, then derive a default one from the locale. See "localeString" property for details. If pattern is not valid, then ISO 8601 "yyyy-MM-dd" will be used. For example, "yyyy-MM-dd", "dd.MM.yyyy", "MM/dd/yyyy".
- localeString - Underscore or dash separated locale string used to determine calendar format such as year, month, date ordering, month names, and week names. If null, then the default locale from the view root will be used. For example, "de_DE", "fr_CA", "es".
- style - The style to be applied to the outermost rendered
element.
- styleClass - The style class to be applied to the outermost
rendered element.
- rendered - Whether the component will be rendered.
© Sun Microsystems 2006. All of the material in The
Java BluePrints Solutions Catalog is copyright-protected
and may not be published in other works without express
written permission from Sun Microsystems.