myfaces-commits mailing list archives

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

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

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

Modified: myfaces/extensions/validator/branches/branch_for_jsf_2_0/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/branches/branch_for_jsf_2_0/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java?rev=933605&r1=933604&r2=933605&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/branch_for_jsf_2_0/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java
(original)
+++ myfaces/extensions/validator/branches/branch_for_jsf_2_0/validation-modules/bean-validation/src/main/java/org/apache/myfaces/extensions/validator/beanval/interceptor/ExtValBeanValidationMetaDataExtractionInterceptor.java
Tue Apr 13 13:51:55 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