myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1335944 - /myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/ExtValELResolver.java
Date Wed, 09 May 2012 06:58:21 GMT
Author: gpetracek
Date: Wed May  9 06:58:21 2012
New Revision: 1335944

URL: http://svn.apache.org/viewvc?rev=1335944&view=rev
Log:
EXTVAL-143 partial map-syntax support needed for composite-components

Modified:
    myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/ExtValELResolver.java

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/ExtValELResolver.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/ExtValELResolver.java?rev=1335944&r1=1335943&r2=1335944&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/ExtValELResolver.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/core/src/main/java/org/apache/myfaces/extensions/validator/core/el/ExtValELResolver.java
Wed May  9 06:58:21 2012
@@ -127,7 +127,7 @@ public class ExtValELResolver extends EL
         else
         {
             boolean propertyExists = false;
-            String propertyName = (String)property;
+            String propertyName = property.toString();
             propertyName = propertyName.substring(0, 1).toUpperCase() + propertyName.substring(1);
 
             try
@@ -207,10 +207,6 @@ public class ExtValELResolver extends EL
             }
             property = (String)o1;
         }
-        else
-        {
-            logWarningForUnsupportedExpression(o1);
-        }
 
         baseObject = o;
         elContext.setPropertyResolved(true);
@@ -297,19 +293,4 @@ public class ExtValELResolver extends EL
         }
         return null;
     }
-
-    private void logWarningForUnsupportedExpression(Object o1)
-    {
-        if(this.projectStageDevelopment)
-        {
-            try
-            {
-                this.logger.warning(o1 + " is not a valid property for constraint based validation.");
-            }
-            catch (NullPointerException e)
-            {
-                this.logger.warning("A property which doesn't support constraint based validation
has been detected.");
-            }
-        }
-    }
 }



Mime
View raw message