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/11/04 17:32:33 UTC

svn commit: r1197632 - /myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIData.java

Author: lu4242
Date: Fri Nov  4 16:32:33 2011
New Revision: 1197632

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

Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIData.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIData.java?rev=1197632&r1=1197631&r2=1197632&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIData.java (original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/component/UIData.java Fri Nov  4 16:32:33 2011
@@ -804,7 +804,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);
                         
@@ -885,7 +885,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);