Author: akushunin
Date: 2007-07-21 06:15:06 -0400 (Sat, 21 Jul 2007)
New Revision: 1769
Modified:
trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp 2007-07-21
01:37:31 UTC (rev 1768)
+++ trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp 2007-07-21
10:15:06 UTC (rev 1769)
@@ -33,7 +33,30 @@
</calendar:calendar>
- <calendar:calendar id="calendar1" />
+ <calendar:calendar
+ id="calendar1"
+ locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}"
+ datePattern="#{calendarBean.pattern}">
+ </calendar:calendar>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()"
valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US"/>
+ <f:selectItem itemLabel="EN" itemValue="en/GB"/>
+ <f:selectItem itemLabel="FR" itemValue="fr/FR"/>
+ </h:selectOneRadio>
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.locale}"
onclick="submit()"/>
+ <h:outputText value="Select Date Pattern:"/>
+ <h:selectOneMenu value="#{calendarBean.pattern}"
onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy"/>
+ <f:selectItem itemLabel="dd/MM/yy"
itemValue="dd/MM/yy"/>
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y"/>
+ <f:selectItem itemLabel="MMM d, yyyy"
itemValue="d/MMM/y"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
</h:form>
</f:view>
</body>