Author: ayanul
Date: 2008-04-29 11:48:38 -0400 (Tue, 29 Apr 2008)
New Revision: 8337
Modified:
trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
Log:
http://jira.jboss.com/jira/browse/RF-2269
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29
15:41:31 UTC (rev 8336)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29
15:48:38 UTC (rev 8337)
@@ -73,6 +73,7 @@
private String jointPoint;
private String direction;
private String boundary;
+ private int firstWeekDay;
private String icon;
private String toolTipMode;
private String label;
@@ -162,6 +163,7 @@
public CalendarBean() {
+ firstWeekDay = 1;
defaultTime = "7:30";
resetTimeOnDateSelect = false;
showFooter = true;
@@ -754,4 +756,20 @@
this.inputSize = inputSize;
}
+
+ /**
+ * @return the firstWeekDay
+ */
+ public int getFirstWeekDay() {
+ return firstWeekDay;
+ }
+
+
+ /**
+ * @param firstWeekDay the firstWeekDay to set
+ */
+ public void setFirstWeekDay(int firstWeekDay) {
+ this.firstWeekDay = firstWeekDay;
+ }
+
}
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 15:41:31
UTC (rev 8336)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 15:48:38
UTC (rev 8337)
@@ -15,6 +15,7 @@
rendered="#{calendarBean.renderedAjax}" />
<rich:calendar id="calendarClientID"
+ firstWeekDay="#{calendarBean.firstWeekDay}"
defaultTime="#{calendarBean.defaultTime}"
resetTimeOnDateSelect="#{calendarBean.resetTimeOnDateSelect}"
showFooter="#{calendarBean.showFooter}"
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29
15:41:31 UTC (rev 8336)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29
15:48:38 UTC (rev 8337)
@@ -47,6 +47,17 @@
<h:outputText value="cellWidth: "></h:outputText>
<h:inputText value="#{calendarBean.cellWidth}"
onchange="submit();"></h:inputText>
+ <h:outputText value="firstWeekDay"></h:outputText>
+ <h:selectOneRadio value="#{calendarBean.firstWeekDay}"
onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="1"/>
+ <f:selectItem itemLabel="2" itemValue="2"/>
+ <f:selectItem itemLabel="3" itemValue="3"/>
+ <f:selectItem itemLabel="4" itemValue="4"/>
+ <f:selectItem itemLabel="5" itemValue="5"/>
+ <f:selectItem itemLabel="6" itemValue="6"/>
+ <f:selectItem itemLabel="7" itemValue="7"/>
+ </h:selectOneRadio>
+
<h:outputText value="todayControlMode" />
<h:selectOneRadio value="#{calendarBean.todayControlMode}"
onchange="submit();">
<f:selectItem itemLabel="scroll" itemValue="scroll" />