incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1125068 - /incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval/src/main/java/org/apache/bval/jsr303/dynamic/extval/DynamicBeanValidationELHelper.java
Date Thu, 19 May 2011 19:39:34 GMT
Author: mbenson
Date: Thu May 19 19:39:34 2011
New Revision: 1125068

URL: http://svn.apache.org/viewvc?rev=1125068&view=rev
Log:
use only dots for PropertyDetails.key

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval/src/main/java/org/apache/bval/jsr303/dynamic/extval/DynamicBeanValidationELHelper.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval/src/main/java/org/apache/bval/jsr303/dynamic/extval/DynamicBeanValidationELHelper.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval/src/main/java/org/apache/bval/jsr303/dynamic/extval/DynamicBeanValidationELHelper.java?rev=1125068&r1=1125067&r2=1125068&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval/src/main/java/org/apache/bval/jsr303/dynamic/extval/DynamicBeanValidationELHelper.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303-dynamic/extval/src/main/java/org/apache/bval/jsr303/dynamic/extval/DynamicBeanValidationELHelper.java
Thu May 19 19:39:34 2011
@@ -28,6 +28,7 @@ import javax.faces.event.PhaseEvent;
 import javax.faces.event.PhaseId;
 import javax.faces.event.PhaseListener;
 
+import org.apache.commons.lang3.StringUtils;
 import org.apache.myfaces.extensions.validator.core.el.AbstractELHelperFactory;
 import org.apache.myfaces.extensions.validator.core.el.DefaultELHelper;
 import org.apache.myfaces.extensions.validator.core.el.ELHelper;
@@ -130,7 +131,9 @@ public class DynamicBeanValidationELHelp
             }
             break;
         }
-        return new PathBasedPropertyDetails(elResolver.getPath().toString(), elResolver.getBaseObject(),
-            elResolver.getLeafProperty(), elResolver.getPath());
+        String key = StringUtils.join(StringUtils.split(elResolver.getPath().toString(),
"[]."), '.');
+        return new PathBasedPropertyDetails(key, elResolver.getBaseObject(), elResolver.getLeafProperty(),
+            elResolver.getPath());
     }
+
 }



Mime
View raw message