commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators ByteLengthTag.java
Date Fri, 18 Oct 2002 19:19:30 GMT
morgand     2002/10/18 12:19:30

  Modified:    latka/src/java/org/apache/commons/latka/jelly/validators
                        ByteLengthTag.java
  Log:
  validator was incorrectly ignoring max and min sizes of -1
  
  Revision  Changes    Path
  1.7       +8 -8      jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/ByteLengthTag.java
  
  Index: ByteLengthTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/validators/ByteLengthTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ByteLengthTag.java	8 Oct 2002 20:27:01 -0000	1.6
  +++ ByteLengthTag.java	18 Oct 2002 19:19:30 -0000	1.7
  @@ -74,8 +74,8 @@
    */
   public class ByteLengthTag extends HttpValidatorTagSupport {
       
  -    protected int _minLength = -1;
  -    protected int _maxLength = -1;
  +    protected int _minLength = -2;
  +    protected int _maxLength = -2;
   
       protected static final Category _log = Category.getInstance(ByteLengthTag.class);
   
  @@ -83,11 +83,11 @@
           ByteLengthValidator validator =
             new ByteLengthValidator(_label);
   
  -        if (_minLength != -1) {
  +        if (_minLength != -2) {
             validator.setMinLength(_minLength);
           }
   
  -        if (_maxLength != -1) {
  +        if (_maxLength != -2) {
             validator.setMaxLength(_maxLength);
           }
           
  
  
  

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


Mime
View raw message