myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1178405 - /myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIInput.java
Date Mon, 03 Oct 2011 13:09:33 GMT
Author: lu4242
Date: Mon Oct  3 13:09:32 2011
New Revision: 1178405

URL: http://svn.apache.org/viewvc?rev=1178405&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/branches/2.0.x/api/src/main/java/javax/faces/component/UIInput.java

Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIInput.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIInput.java?rev=1178405&r1=1178404&r2=1178405&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIInput.java (original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIInput.java Mon Oct
 3 13:09:32 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