myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r548212 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/clientvalidation/common/CVUtils.java
Date Mon, 18 Jun 2007 04:58:35 GMT
Author: mmarinschek
Date: Sun Jun 17 21:58:34 2007
New Revision: 548212

URL: http://svn.apache.org/viewvc?view=rev&rev=548212
Log:
client-side validation doesn't work with UIInput in dataTable

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/clientvalidation/common/CVUtils.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/clientvalidation/common/CVUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/clientvalidation/common/CVUtils.java?view=diff&rev=548212&r1=548211&r2=548212
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/clientvalidation/common/CVUtils.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/clientvalidation/common/CVUtils.java
Sun Jun 17 21:58:34 2007
@@ -91,10 +91,11 @@
 		else
 			return Boolean.valueOf(context.getInitParameter("org.apache.myfaces.ENABLE_CLIENT_SIDE_VALIDATION")).booleanValue();
 	}
-	
-	//Traverses the component tree recursively, queues validation calls starting from the root
+
+    //todo: This won't work - there is no way to traverse the component tree properly!
+    //Traverses the component tree recursively, queues validation calls starting from the
root
 	public static void queueCVCalls(UIComponent root) {
-		if( root.getChildCount() > 0 ) {
+	/*	if( root.getChildCount() > 0 ) {
 			for( int i = 0; i< root.getChildCount() ; i++ ) 
 				queueCVCalls( (UIComponent) root.getChildren().get( i ) );
 		} else {
@@ -102,7 +103,7 @@
 				UIInput input = (UIInput) root;
 				addCVCall( createCVCall( input ) );
 			}
-		}
+		} */
 	}
 	
 	public static void encodeValidationScript(FacesContext facesContext) throws IOException{



Mime
View raw message