myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r472725 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
Date Thu, 09 Nov 2006 01:07:24 GMT
Author: tomsp
Date: Wed Nov  8 17:07:24 2006
New Revision: 472725

URL: http://svn.apache.org/viewvc?view=rev&rev=472725
Log:
MYFACES-1430 fixed, had to revert MyFaces-1301

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java?view=diff&rev=472725&r1=472724&r2=472725
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
(original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
Wed Nov  8 17:07:24 2006
@@ -440,16 +440,18 @@
                         + " for binding [" + valueBinding.getExpressionString() + "]");
             }
 
-        }
-        try {
-            UIComponent component = createComponent(componentType);
-            valueBinding.setValue(facesContext, component);
-            return component;
-        } catch(FacesException ex) {
-            log.error("Exception while creating component of type [" + componentType + "]"
-                    + " for binding [" + valueBinding.getExpressionString() + "]");
-            throw ex;
+            return (UIComponent) obj;
+        } else {
+            try {
+                UIComponent component = createComponent(componentType);
+                valueBinding.setValue(facesContext, component);
+                return component;
+            } catch(FacesException ex) {
+                log.error("Exception while creating component of type [" + componentType
+ "]"
+                        + " for binding [" + valueBinding.getExpressionString() + "]");
+                throw ex;
 
+            }
         }
     }
 



Mime
View raw message