myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r226842 - in /myfaces/sandbox/trunk: conf/faces-config.xml tld/myfaces_sandbox.tld
Date Mon, 01 Aug 2005 17:15:24 GMT
Author: baranda
Date: Mon Aug  1 10:15:18 2005
New Revision: 226842

URL: http://svn.apache.org/viewcvs?rev=226842&view=rev
Log:
The second part of the UrlValidator...

Modified:
    myfaces/sandbox/trunk/conf/faces-config.xml
    myfaces/sandbox/trunk/tld/myfaces_sandbox.tld

Modified: myfaces/sandbox/trunk/conf/faces-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/conf/faces-config.xml?rev=226842&r1=226841&r2=226842&view=diff
==============================================================================
--- myfaces/sandbox/trunk/conf/faces-config.xml (original)
+++ myfaces/sandbox/trunk/conf/faces-config.xml Mon Aug  1 10:15:18 2005
@@ -95,8 +95,11 @@
        <renderer-class>org.apache.myfaces.custom.form.HtmlFormRenderer</renderer-class>
     </renderer>
 
-    <!--custom validators -->
-
+    <!--custom validators -->
+    <validator>
+        <validator-id>org.apache.myfaces.validator.Url</validator-id>
+        <validator-class>org.apache.myfaces.custom.urlvalidator.UrlValidator</validator-class>
+    </validator>
     
 
   </render-kit>

Modified: myfaces/sandbox/trunk/tld/myfaces_sandbox.tld
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/tld/myfaces_sandbox.tld?rev=226842&r1=226841&r2=226842&view=diff
==============================================================================
--- myfaces/sandbox/trunk/tld/myfaces_sandbox.tld (original)
+++ myfaces/sandbox/trunk/tld/myfaces_sandbox.tld Mon Aug  1 10:15:18 2005
@@ -286,5 +286,17 @@
             <rtexprvalue>false</rtexprvalue>
             <description>This attribute can be used to set the port for the action
attribute</description>
         </attribute>        
-    </tag>
+    </tag>
+    
+    <!-- Validators -->
+    <!-- Validator for Url -->
+    <tag>
+       <name>validateUrl</name>
+       <tag-class>org.apache.myfaces.custom.emailvalidator.ValidateUrlTag</tag-class>
+       <body-content>JSP</body-content>
+       <description>
+ 			A custom validator for url format, based upons Jakarta Commons.
+        </description>
+    </tag>	
+    
 </taglib>



Mime
View raw message