cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: rev 57071 - cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/formmodel
Date Tue, 09 Nov 2004 19:23:17 GMT
Author: tim
Date: Tue Nov  9 11:23:16 2004
New Revision: 57071

Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Union.java
Log:
CForms Union: Correcting isAcceptingInputs() semantics.

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Union.java
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Union.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Union.java
Tue Nov  9 11:23:16 2004
@@ -84,9 +84,6 @@
     }
 
     public void readFromRequest(FormContext formContext) {
-        if (!getCombinedState().isAcceptingInputs())
-            return;
-
         // Ensure the case widget has read its value
         this.caseWidget.readFromRequest(formContext);
 
@@ -105,7 +102,7 @@
                 widget = getChild(newValue);
             }
 
-            if (widget != null) {
+            if (widget != null && getCombinedState().isAcceptingInputs()) {
                 widget.readFromRequest(formContext);
             }
         }

Mime
View raw message