You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/11/25 23:59:46 UTC

svn commit: r1039215 - in /myfaces/commons/trunk/examples: myfaces-commons-examples/src/main/webapp/validateDateRestriction.jsp myfaces-commons-facelets-examples/src/main/webapp/validateDateRestriction.xhtml

Author: lu4242
Date: Thu Nov 25 22:59:46 2010
New Revision: 1039215

URL: http://svn.apache.org/viewvc?rev=1039215&view=rev
Log:
fix invalidMonths and invalidDaysOfWeek in jsp and do not handle invalidDays with _DateRestrictionRule

Modified:
    myfaces/commons/trunk/examples/myfaces-commons-examples/src/main/webapp/validateDateRestriction.jsp
    myfaces/commons/trunk/examples/myfaces-commons-facelets-examples/src/main/webapp/validateDateRestriction.xhtml

Modified: myfaces/commons/trunk/examples/myfaces-commons-examples/src/main/webapp/validateDateRestriction.jsp
URL: http://svn.apache.org/viewvc/myfaces/commons/trunk/examples/myfaces-commons-examples/src/main/webapp/validateDateRestriction.jsp?rev=1039215&r1=1039214&r2=1039215&view=diff
==============================================================================
--- myfaces/commons/trunk/examples/myfaces-commons-examples/src/main/webapp/validateDateRestriction.jsp (original)
+++ myfaces/commons/trunk/examples/myfaces-commons-examples/src/main/webapp/validateDateRestriction.jsp Thu Nov 25 22:59:46 2010
@@ -51,10 +51,10 @@
 			<h:panelGrid columns="3">
 
 				<h:outputLabel for="date1"
-					value="Insert a date (yyyy/MM/dd)" />
+					value="Insert a date (yyyy/MM/dd) [months jan, apr, sep are invalid and if fall on saturday or sunday(sat sun) ]" />
 				<h:inputText id="date1" value="#{dateTimeBean.date1}" required="true">
                    <mcc:convertDateTime pattern="yyyy/MM/dd"/>
-                   <mcv:validateDateRestriction invalidMonths="#{dateTimeBean.invalidMonths}"/>
+                   <mcv:validateDateRestriction invalidMonths="#{dateTimeBean.invalidMonths}" invalidDaysOfWeek="sat sun"/>
 				</h:inputText>
 				<h:message for="date1" styleClass="error" />
 
@@ -73,4 +73,4 @@
 </body>
 
 </f:view>
-</html>
\ No newline at end of file
+</html>

Modified: myfaces/commons/trunk/examples/myfaces-commons-facelets-examples/src/main/webapp/validateDateRestriction.xhtml
URL: http://svn.apache.org/viewvc/myfaces/commons/trunk/examples/myfaces-commons-facelets-examples/src/main/webapp/validateDateRestriction.xhtml?rev=1039215&r1=1039214&r2=1039215&view=diff
==============================================================================
--- myfaces/commons/trunk/examples/myfaces-commons-facelets-examples/src/main/webapp/validateDateRestriction.xhtml (original)
+++ myfaces/commons/trunk/examples/myfaces-commons-facelets-examples/src/main/webapp/validateDateRestriction.xhtml Thu Nov 25 22:59:46 2010
@@ -40,10 +40,10 @@
 			<h:panelGrid columns="3">
 
 				<h:outputLabel for="date1"
-					value="Insert a date (yyyy/MM/dd)" />
+					value="Insert a date (yyyy/MM/dd) [months jan, apr, sep are invalid and if fall on saturday or sunday(sat sun) ]" />
 				<h:inputText id="date1" value="#{dateTimeBean.date1}" required="true">
                    <mcc:convertDateTime pattern="yyyy/MM/dd"/>
-                   <mcv:validateDateRestriction invalidMonths="#{dateTimeBean.invalidMonths}"/>
+                   <mcv:validateDateRestriction invalidMonths="#{dateTimeBean.invalidMonths}" invalidDaysOfWeek="sat sun"/>
 				</h:inputText>
 				<h:message for="date1" styleClass="error" />