You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2011/08/14 20:07:41 UTC

svn commit: r1157585 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java

Author: lu4242
Date: Sun Aug 14 18:07:41 2011
New Revision: 1157585

URL: http://svn.apache.org/viewvc?rev=1157585&view=rev
Log:
small fix do not save log info if no viewRoot set

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java?rev=1157585&r1=1157584&r2=1157585&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java Sun Aug 14 18:07:41 2011
@@ -1107,6 +1107,15 @@ public class UIInput extends UIOutput im
             return;
         }
         
+        if (facesContext.getViewRoot() == null)
+        {
+            // No viewRoot set, it is creating component, 
+            // so it is not possible to calculate the clientId, 
+            // abort processing because the interesting part will
+            // happen later.
+            return;
+        }
+        
         // convert Array values into a more readable format
         if (oldValue != null && oldValue.getClass().isArray())
         {