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.

© 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.