myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r499963 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/validator/FileItemValidator.java
Date Thu, 25 Jan 2007 20:46:47 GMT
Author: bommel
Date: Thu Jan 25 12:46:47 2007
New Revision: 499963

URL: http://svn.apache.org/viewvc?view=rev&rev=499963
Log:
better validator message

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/validator/FileItemValidator.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/validator/FileItemValidator.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/validator/FileItemValidator.java?view=diff&rev=499963&r1=499962&r2=499963
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/validator/FileItemValidator.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/validator/FileItemValidator.java
Thu Jan 25 12:46:47 2007
@@ -24,7 +24,7 @@
 
 import javax.faces.validator.Validator;
 import javax.faces.validator.ValidatorException;
-import javax.faces.validator.LengthValidator;
+import javax.faces.validator.DoubleRangeValidator;
 import javax.faces.component.StateHolder;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
@@ -57,7 +57,7 @@
         // TODO better error text i18n
         Object[] args = {maxSize,  component.getId()};
         FacesMessage facesMessage = MessageFactory.createFacesMessage(context,
-            LengthValidator.MAXIMUM_MESSAGE_ID, FacesMessage.SEVERITY_ERROR, args);
+            DoubleRangeValidator.MAXIMUM_MESSAGE_ID, FacesMessage.SEVERITY_ERROR, args);
         throw new ValidatorException(facesMessage);
       }
       if (contentType != null



Mime
View raw message