myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From al...@apache.org
Subject svn commit: r985597 - /myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText04.xhtml
Date Sat, 14 Aug 2010 23:10:22 GMT
Author: aliok
Date: Sat Aug 14 23:10:22 2010
New Revision: 985597

URL: http://svn.apache.org/viewvc?rev=985597&view=rev
Log:
Html5 - Added an example of driving client-side validation with custom validator

Modified:
    myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText04.xhtml

Modified: myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText04.xhtml
URL: http://svn.apache.org/viewvc/myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText04.xhtml?rev=985597&r1=985596&r2=985597&view=diff
==============================================================================
--- myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText04.xhtml
(original)
+++ myfaces/gsoc/html5-comp-lib/trunk/html5-comp-lib-examples/src/main/webapp/inputText/inputText04.xhtml
Sat Aug 14 23:10:22 2010
@@ -47,7 +47,7 @@
 			<h:form id="myForm">
 				<h:panelGrid cols="2" >
 					<label>Simple pattern usage:</label>
-			    	<hx:inputText id="textIT" value="#{inputTextBean.someParam}" title="A part number
is a digit followed by three uppercase letters.">
+			    	<hx:inputText id="textIT" value="#{inputTextBean.someParam}" required="true" title="A
part number is a digit followed by three uppercase letters.">
 			    		<f:validateRegex pattern="[0-9][A-Z]{3}" />
 			    	</hx:inputText>
 			    	
@@ -57,8 +57,7 @@
                     </hx:inputText>
                     
                     <label>Support for custom validators:</label>
-                    <hx:inputText id="someAnotherTextIT" value="#{inputTextBean.fourthParam}"
required="true" 
-                        title="A part number is a digit followed by three uppercase letters.">
+                    <hx:inputText id="someAnotherTextIT" value="#{inputTextBean.fourthParam}"
required="true" title="A part number is a digit followed by three uppercase letters.">
                         <f:validator validatorId="partNumberValidator" />
                     </hx:inputText>
 		    	



Mime
View raw message