Author: nbelaevski
Date: 2007-09-03 14:16:24 -0400 (Mon, 03 Sep 2007)
New Revision: 2727
Modified:
trunk/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java
trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
Log:
data attribute renamed to dataModel
common AJAX attributes processing added, test application updated
Modified: trunk/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java
===================================================================
--- trunk/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java 2007-09-03
18:16:18 UTC (rev 2726)
+++ trunk/samples/calendar-sample/src/main/java/org/richfaces/CalendarBean.java 2007-09-03
18:16:24 UTC (rev 2727)
@@ -53,6 +53,8 @@
private String direction;
private String boundary;
+ private int counter;
+
private boolean useCustomDayLabels;
public Locale getLocale() {
@@ -218,5 +220,7 @@
}
-
+ public int getCounter() {
+ return counter++;
+ }
}
\ No newline at end of file
Modified: trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp
===================================================================
--- trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-09-03 18:16:18
UTC (rev 2726)
+++ trunk/samples/calendar-sample/src/main/webapp/pages/Calendar.jsp 2007-09-03 18:16:24
UTC (rev 2727)
@@ -28,6 +28,10 @@
<h:messages showDetail="true" showSummary="true"/>
</a4j:outputPanel>
<h:form>
+ <h:panelGroup id="counter">
+ <h:outputText value="#{calendarBean.counter}" />
+ </h:panelGroup>
+
<h:panelGrid columns="1">
<h:selectOneRadio binding="#{skinBean.component}" />
<h:commandLink action="#{skinBean.change}" value="set
skin" />
@@ -50,7 +54,8 @@
showInput="#{calendarBean.showInput}"
boundaryDatesMode="#{calendarBean.boundary}"
currentDateChangeListener="#{calendarBean.dcl}"
- valueChangeListener="#{calendarBean.ddd}">
+ valueChangeListener="#{calendarBean.ddd}"
+ reRender="counter">
<f:facet name="optionalHeader">
<h:outputText value="optionalHeader Facet" />
</f:facet>
Show replies by date