myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1178404 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
Date Mon, 03 Oct 2011 13:09:15 GMT
Author: lu4242
Date: Mon Oct  3 13:09:14 2011
New Revision: 1178404

URL: http://svn.apache.org/viewvc?rev=1178404&view=rev
Log:
MYFACES-3341 Call to getClientId() on UIInput._createFieldDebugInfo on jsp cause invalid client
to be assigned on development project stage

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=1178404&r1=1178403&r2=1178404&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 Mon Oct  3 13:09:14
2011
@@ -1116,6 +1116,12 @@ public class UIInput extends UIOutput im
             return;
         }
         
+        if (getParent() == null || !isInView())
+        {
+            //Skip if no parent or is not in view
+            return;
+        }
+        
         // convert Array values into a more readable format
         if (oldValue != null && oldValue.getClass().isArray() && Object[].class.isAssignableFrom(oldValue.getClass()))
         {



Mime
View raw message