myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r696996 - /myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java
Date Fri, 19 Sep 2008 08:58:01 GMT
Author: gpetracek
Date: Fri Sep 19 01:58:00 2008
New Revision: 696996

URL: http://svn.apache.org/viewvc?rev=696996&view=rev
Log:
fix for special component libs (input components without value-binding)

Modified:
    myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java

Modified: myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java?rev=696996&r1=696995&r2=696996&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java
(original)
+++ myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/util/ELUtils.java
Fri Sep 19 01:58:00 2008
@@ -94,6 +94,15 @@
         String valueBindingExpression = getValueBindingExpression(uiComponent);
 
         String baseExpression = valueBindingExpression;
+
+        //for input components without value-binding
+        //(e.g. for special component libs -> issue with ExtValRendererWrapper#encodeBegin)
+        if(baseExpression == null)
+        {
+            //TODO logging
+            return null;
+        }
+
         if (baseExpression.contains("."))
         {
             baseExpression = baseExpression.substring(0, valueBindingExpression



Mime
View raw message