[jboss-cvs] JBossAS SVN: r97846 - in projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main: webapp and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 15 10:08:32 EST 2009


Author: lvlcek at redhat.com
Date: 2009-12-15 10:08:32 -0500 (Tue, 15 Dec 2009)
New Revision: 97846

Modified:
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/ReservationSearchOptions.java
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/webapp/reservationSearch.xhtml
Log:
fixed rich:calendar event (onchange)

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/ReservationSearchOptions.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/ReservationSearchOptions.java	2009-12-15 14:50:30 UTC (rev 97845)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/java/org/jboss/snowdrop/samples/sportsclub/jsf/beans/ReservationSearchOptions.java	2009-12-15 15:08:32 UTC (rev 97846)
@@ -30,7 +30,6 @@
 
    public void setFromDate(Date fromDate)
    {
-      System.out.println("setting fromDate - " + fromDate);
       this.fromDate = fromDate;
    }
 
@@ -41,7 +40,6 @@
 
    public void setToDate(Date toDate)
    {
-      System.out.println("setting toDate - " + toDate);
       this.toDate = toDate;
    }
 

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/webapp/reservationSearch.xhtml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/webapp/reservationSearch.xhtml	2009-12-15 14:50:30 UTC (rev 97845)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-reservations-web/src/main/webapp/reservationSearch.xhtml	2009-12-15 15:08:32 UTC (rev 97846)
@@ -13,11 +13,11 @@
             <h:form>
                 from:
                 <rich:calendar id="from" value="#{reservationSearch.reservationSearchOptions.fromDate}">
-                    <a4j:support event="ondateselected" reRender="searchResults"/>
+                    <a4j:support event="onchanged" reRender="searchResults"/>
                 </rich:calendar>
                 to:
                 <rich:calendar id="to" value="#{reservationSearch.reservationSearchOptions.toDate}">
-                    <a4j:support event="ondateselected" reRender="searchResults"/>
+                    <a4j:support event="onchanged" reRender="searchResults"/>
                 </rich:calendar>
                 <br/>
                 <table>
@@ -36,6 +36,8 @@
                         </td>
                     </tr>
                 </table>
+                <br/>
+                <a4j:status id="commonstatus" startText="Retrieving data..." stopText=""/>
 
             </h:form>
         </rich:panel>




More information about the jboss-cvs-commits mailing list