myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r267343 - /myfaces/api/trunk/src/java/javax/faces/component/UIForm.java
Date Fri, 02 Sep 2005 22:55:49 GMT
Author: oros
Date: Fri Sep  2 15:55:22 2005
New Revision: 267343

URL: http://svn.apache.org/viewcvs?rev=267343&view=rev
Log:
execute special repeated decode call in processValidators/processUpdates only if isSubmitted
is not true already

Modified:
    myfaces/api/trunk/src/java/javax/faces/component/UIForm.java

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIForm.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIForm.java?rev=267343&r1=267342&r2=267343&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIForm.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIForm.java Fri Sep  2 15:55:22 2005
@@ -58,7 +58,9 @@
         // SF issue #1050022: a form used within a datatable will loose it's submitted state
         // as UIForm is no EditableValueHolder and therefore it's state is not saved/restored
by UIData
         // to restore the submitted state we call decode here again
-        decode(context);
+        if (!isSubmitted()) {
+            decode(context);
+        }
         if (!isSubmitted()) return;
         for (Iterator it = getFacetsAndChildren(); it.hasNext(); )
         {
@@ -73,7 +75,9 @@
         // SF issue #1050022: a form used within a datatable will loose it's submitted state
         // as UIForm is no EditableValueHolder and therefore it's state is not saved/restored
by UIData
         // to restore the submitted state we call decode here again
-        decode(context);
+        if (!isSubmitted()) {
+            decode(context);
+        }
         if (!isSubmitted()) return;
         for (Iterator it = getFacetsAndChildren(); it.hasNext(); )
         {



Mime
View raw message