cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r410237 - in /cocoon: branches/BRANCH_2_1_X/status.xml trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/formmodel/Output.java
Date Tue, 30 May 2006 10:48:59 GMT
Author: antonio
Date: Tue May 30 03:48:58 2006
New Revision: 410237

URL: http://svn.apache.org/viewvc?rev=410237&view=rev
Log:
Fix COCOON-1741 CForms: Output widget does not initialize from <fd:initial-value>.
Thanks to Frrek Segers (freek.segers@nerocmediaware.nl).

Modified:
    cocoon/branches/BRANCH_2_1_X/status.xml
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/formmodel/Output.java

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/status.xml?rev=410237&r1=410236&r2=410237&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Tue May 30 03:48:58 2006
@@ -182,6 +182,9 @@
   <release version="@version@" date="@date@">
 -->
   <release version="2.1.10" date="TBD">
+    <action dev="AG" type="fix" fixes-bug="COCOON-1741" due-to="Freek Segers" due-to-email="freek.segers@nerocmediaware.nl">
+      CForms: Output widget does not initialize from &lt;fd:initial-value&gt;.
+    </action>
     <action dev="AG" type="fix" fixes-bug="COCOON-1744" due-to="Tim Williams" due-to-email="williamstw@gmail.com">
       Template block: NullPointerException.
     </action>

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/formmodel/Output.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/formmodel/Output.java?rev=410237&r1=410236&r2=410237&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/formmodel/Output.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/formmodel/Output.java
Tue May 30 03:48:58 2006
@@ -63,6 +63,14 @@
         return definition;
     }
 
+    public void initialize() {
+        Object value = this.definition.getInitialValue();
+        if (value != null) {
+            setValue(value);
+        }
+        super.initialize();
+    }
+
     public void readFromRequest(FormContext formContext) {
         // do nothing
     }



Mime
View raw message