You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/09/06 19:07:04 UTC

svn commit: r1165761 - /myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java

Author: bommel
Date: Tue Sep  6 17:07:04 2011
New Revision: 1165761

URL: http://svn.apache.org/viewvc?rev=1165761&view=rev
Log:
(TOBAGO-1022)
Support for a default validator in input components like JSF 2.0

Modified:
    myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java

Modified: myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java?rev=1165761&r1=1165760&r2=1165761&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java (original)
+++ myfaces/tobago/trunk/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/TobagoComponentHandler.java Tue Sep  6 17:07:04 2011
@@ -116,7 +116,7 @@ public class TobagoComponentHandler exte
     if (validators.length > 0) {
       Set classNames = new HashSet();
       // collect classNames of validators
-      for (int i = 0, validatorsLength = validators.length; i < validatorsLength; i++) {
+      for (int i = 0; i < validators.length; i++) {
         classNames.add(validators[i].getClass().getName());
       }
       Iterator it = validatorInfoMap.entrySet().iterator();