myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r933603 - /myfaces/extensions/validator/trunk/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java
Date Tue, 13 Apr 2010 13:51:13 GMT
Author: gpetracek
Date: Tue Apr 13 13:51:13 2010
New Revision: 933603

URL: http://svn.apache.org/viewvc?rev=933603&view=rev
Log:
EXTVAL-55 for bv

Modified:
    myfaces/extensions/validator/trunk/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java

Modified: myfaces/extensions/validator/trunk/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/trunk/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java?rev=933603&r1=933602&r2=933603&view=diff
==============================================================================
--- myfaces/extensions/validator/trunk/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java
(original)
+++ myfaces/extensions/validator/trunk/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java
Tue Apr 13 13:51:13 2010
@@ -56,7 +56,10 @@ public class ExtValBeanValidationMetaDat
                 UIComponent uiComponent = (UIComponent)properties.get(UIComponent.class.getName());
                 PropertyDetails propertyDetails = ExtValUtils.getPropertyDetails(propertyInformation);
 
-                processExtValBeanValidationMetaData(uiComponent, propertyDetails);
+                if(propertyDetails != null)
+                {
+                    processExtValBeanValidationMetaData(uiComponent, propertyDetails);
+                }
             }
         }
     }
@@ -69,6 +72,11 @@ public class ExtValBeanValidationMetaDat
      */
     private void processExtValBeanValidationMetaData(UIComponent uiComponent, PropertyDetails
propertyDetails)
     {
+        if(propertyDetails.getKey() == null)
+        {
+            return;
+        }
+        
         if(JsfUtils.isRenderResponsePhase())
         {
             BeanValidationUtils.addMetaDataToContext(uiComponent, propertyDetails, false);



Mime
View raw message