commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Validator.java
Date Wed, 12 Mar 2003 06:22:23 GMT
dgraham     2003/03/11 22:22:23

  Modified:    validator/src/share/org/apache/commons/validator
                        Validator.java
  Log:
  Only call validateField if field has a depends clause (ie. !=null).  PR #16045.
  
  Revision  Changes    Path
  1.14      +7 -6      jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Validator.java	12 Mar 2003 06:00:52 -0000	1.13
  +++ Validator.java	12 Mar 2003 06:22:23 -0000	1.14
  @@ -83,7 +83,8 @@
    * and the validation rules for a JavaBean.</p>
    *
    * @author David Winterfeldt
  - * @author James Turner 
  + * @author James Turner
  + * @author David Graham
    * @version $Revision$ $Date$
    */
   public class Validator implements Serializable {
  @@ -583,7 +584,7 @@
           if (form != null) {
               for (Iterator i = form.getFields().iterator(); i.hasNext();) {
                   Field field = (Field) i.next();
  -                if (field.getPage() <= page) {
  +                if ((field.getPage() <= page) && (field.getDepends() != null))
{
                       validateField(field, results);
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message