incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r488308 - /incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/validator/LengthValidator.java
Date Mon, 18 Dec 2006 15:50:25 GMT
Author: matzew
Date: Mon Dec 18 07:50:24 2006
New Revision: 488308

URL: http://svn.apache.org/viewvc?view=rev&rev=488308
Log:
quick fix for not set maximum attribute

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/validator/LengthValidator.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/validator/LengthValidator.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/validator/LengthValidator.java?view=diff&rev=488308&r1=488307&r2=488308
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/validator/LengthValidator.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-api/src/main/java/org/apache/myfaces/trinidad/validator/LengthValidator.java
Mon Dec 18 07:50:24 2006
@@ -112,6 +112,8 @@
   public int getMaximum()
   {
     Object maxInt = _facesBean.getProperty(_MAXIMUM_KEY);
+    if(maxInt == null)
+      maxInt = Integer.MAX_VALUE;
     return ComponentUtils.resolveInteger(maxInt);
   }
 



Mime
View raw message