myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1197633 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java
Date Fri, 04 Nov 2011 16:32:51 GMT
Author: lu4242
Date: Fri Nov  4 16:32:51 2011
New Revision: 1197633

URL: http://svn.apache.org/viewvc?rev=1197633&view=rev
Log:
MYFACES-3385 Entered values for input fields conatined in a Composite Component are lost,
if the CC is used in a datatable

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

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java?rev=1197633&r1=1197632&r2=1197633&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java Fri Nov  4 16:32:51
2011
@@ -921,7 +921,7 @@ public class UIData extends UIComponentB
                                 new Object[]{new EditableValueHolderState((EditableValueHolder)
child),
                                     null});
                     }
-                    else if (child.getChildCount() > 0)
+                    else if (child.getChildCount() > 0 || (saveChildFacets &&
child.getFacetCount() > 0))
                     {
                         Object descendantSavedState = saveDescendantComponentStates(child,
saveChildFacets, true);
                         
@@ -1002,7 +1002,7 @@ public class UIData extends UIComponentB
                                 new Object[]{new EditableValueHolderState((EditableValueHolder)
child),
                                     null});
                     }
-                    else if (child.getChildCount() > 0)
+                    else if (child.getChildCount() > 0 || (saveChildFacets &&
child.getFacetCount() > 0))
                     {
                         Object descendantSavedState = saveDescendantComponentStates(child,
saveChildFacets, true);
                         



Mime
View raw message