Author: ayanul
Date: 2008-04-29 08:02:23 -0400 (Tue, 29 Apr 2008)
New Revision: 8284
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-3107
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:00:30 UTC (rev 8283)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29
12:02:23 UTC (rev 8284)
@@ -34,6 +34,10 @@
import org.richfaces.event.CurrentDateChangeEvent;
+/**
+ * @author AYanul
+ *
+ */
public class CalendarBean {
private static final String [] WEEK_DAY_SHORT = new String[] {
"<i>Sun</i>",
@@ -88,8 +92,62 @@
private String todayControlMode; // scroll, select, hidden;
private boolean limitToList;
private String inputSize;
+ private boolean showHeader;
+ private boolean showFooter;
+ private boolean resetTimeOnDateSelect;
+ /**
+ * @return the showHeader
+ */
+ public boolean isShowHeader() {
+ return showHeader;
+ }
+
+
+ /**
+ * @param showHeader the showHeader to set
+ */
+ public void setShowHeader(boolean showHeader) {
+ this.showHeader = showHeader;
+ }
+
+
+ /**
+ * @return the showFooter
+ */
+ public boolean isShowFooter() {
+ return showFooter;
+ }
+
+
+ /**
+ * @param showFooter the showFooter to set
+ */
+ public void setShowFooter(boolean showFooter) {
+ this.showFooter = showFooter;
+ }
+
+
+ /**
+ * @return the resetTimeOnDateSelect
+ */
+ public boolean isResetTimeOnDateSelect() {
+ return resetTimeOnDateSelect;
+ }
+
+
+ /**
+ * @param resetTimeOnDateSelect the resetTimeOnDateSelect to set
+ */
+ public void setResetTimeOnDateSelect(boolean resetTimeOnDateSelect) {
+ this.resetTimeOnDateSelect = resetTimeOnDateSelect;
+ }
+
+
public CalendarBean() {
+ resetTimeOnDateSelect = false;
+ showFooter = true;
+ showHeader = true;
limitToList = false;
horizontalOffset = "0";
verticalOffset = "0";
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:00:30
UTC (rev 8283)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 12:02:23
UTC (rev 8284)
@@ -14,7 +14,9 @@
<h:outputText value="Ajax mode"
rendered="#{calendarBean.renderedAjax}" />
- <rich:calendar id="calendarClientID"
+ <rich:calendar id="calendarClientID"
resetTimeOnDateSelect="#{calendarBean.resetTimeOnDateSelect}"
+ showFooter="#{calendarBean.showFooter}"
+ showHeader="#{calendarBean.showHeader}"
horizontalOffset="#{calendarBean.horizontalOffset}"
verticalOffset="#{calendarBean.verticalOffset}"
ignoreDupResponses="#{calendarBean.ignoreDupResponses}"
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:00:30 UTC (rev 8283)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29
12:02:23 UTC (rev 8284)
@@ -152,7 +152,16 @@
<h:outputText value="ShowInput:"></h:outputText>
<h:selectBooleanCheckbox value="#{calendarBean.showInput}"
onclick="submit()">
</h:selectBooleanCheckbox>
+
+ <h:outputText value="resetTimeOnDateSelect"></h:outputText>
+ <h:selectBooleanCheckbox
value="#{calendarBean.resetTimeOnDateSelect}"></h:selectBooleanCheckbox>
+ <h:outputText value="showFooter"></h:outputText>
+ <h:selectBooleanCheckbox
value="#{calendarBean.showFooter}"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showHeader"></h:outputText>
+ <h:selectBooleanCheckbox
value="#{calendarBean.showHeader}"></h:selectBooleanCheckbox>
+
<h:outputText value="Disabled:" />
<h:selectBooleanCheckbox value="#{calendarBean.disabled}"
onclick="submit()" />