Author: ayanul
Date: 2008-04-29 08:22:58 -0400 (Tue, 29 Apr 2008)
New Revision: 8291
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-3105
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29
12:13:32 UTC (rev 8290)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29
12:22:58 UTC (rev 8291)
@@ -95,8 +95,25 @@
private boolean showHeader;
private boolean showFooter;
private boolean resetTimeOnDateSelect;
+ private String defaultTime;
/**
+ * @return the defaultTime
+ */
+ public String getDefaultTime() {
+ return defaultTime;
+ }
+
+
+ /**
+ * @param defaultTime the defaultTime to set
+ */
+ public void setDefaultTime(String defaultTime) {
+ this.defaultTime = defaultTime;
+ }
+
+
+ /**
* @return the showHeader
*/
public boolean isShowHeader() {
@@ -145,6 +162,7 @@
public CalendarBean() {
+ defaultTime = "7:30";
resetTimeOnDateSelect = false;
showFooter = true;
showHeader = true;
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 12:13:32
UTC (rev 8290)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 12:22:58
UTC (rev 8291)
@@ -14,7 +14,9 @@
<h:outputText value="Ajax mode"
rendered="#{calendarBean.renderedAjax}" />
- <rich:calendar id="calendarClientID"
resetTimeOnDateSelect="#{calendarBean.resetTimeOnDateSelect}"
+ <rich:calendar id="calendarClientID"
+ defaultTime="#{calendarBean.defaultTime}"
+ resetTimeOnDateSelect="#{calendarBean.resetTimeOnDateSelect}"
showFooter="#{calendarBean.showFooter}"
showHeader="#{calendarBean.showHeader}"
horizontalOffset="#{calendarBean.horizontalOffset}"
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29
12:13:32 UTC (rev 8290)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29
12:22:58 UTC (rev 8291)
@@ -122,6 +122,9 @@
<f:selectItem itemLabel="top-left" itemValue="top-left"
/>
<f:selectItem itemLabel="auto" itemValue="auto" />
</h:selectOneRadio>
+
+ <h:outputText value="defaultTime"></h:outputText>
+ <h:inputText value="#{calendarBean.defaultTime}"
onchange="submit();"></h:inputText>
<h:outputText value="Time Zone:" />
<h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}"
onchange="submit();">
@@ -154,13 +157,13 @@
</h:selectBooleanCheckbox>
<h:outputText value="resetTimeOnDateSelect"></h:outputText>
- <h:selectBooleanCheckbox
value="#{calendarBean.resetTimeOnDateSelect}"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{calendarBean.resetTimeOnDateSelect}"
onchange="sumit();"></h:selectBooleanCheckbox>
<h:outputText value="showFooter"></h:outputText>
- <h:selectBooleanCheckbox
value="#{calendarBean.showFooter}"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{calendarBean.showFooter}"
onchange="sumit();"></h:selectBooleanCheckbox>
<h:outputText value="showHeader"></h:outputText>
- <h:selectBooleanCheckbox
value="#{calendarBean.showHeader}"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{calendarBean.showHeader}"
onchange="sumit();"></h:selectBooleanCheckbox>
<h:outputText value="Disabled:" />
<h:selectBooleanCheckbox value="#{calendarBean.disabled}"
onclick="submit()" />