cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r694346 - /cocoon/branches/BRANCH_2_1_X-dojo1_1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Field.java
Date Thu, 11 Sep 2008 16:44:52 GMT
Author: jeremy
Date: Thu Sep 11 09:44:47 2008
New Revision: 694346

URL: http://svn.apache.org/viewvc?rev=694346&view=rev
Log:
adding output of whitespace param, so its action may be performed on the client

Modified:
    cocoon/branches/BRANCH_2_1_X-dojo1_1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Field.java

Modified: cocoon/branches/BRANCH_2_1_X-dojo1_1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Field.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X-dojo1_1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Field.java?rev=694346&r1=694345&r2=694346&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X-dojo1_1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Field.java
(original)
+++ cocoon/branches/BRANCH_2_1_X-dojo1_1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/Field.java
Thu Sep 11 09:44:47 2008
@@ -279,7 +279,6 @@
             } else {
                 this.enteredValue = null;
             }
-
             if (callListeners) {
                 getForm().addWidgetEvent(new ValueChangedEvent(this, oldValue, newValue));
             }
@@ -428,7 +427,6 @@
         if (this.valueState != VALUE_UNPARSED) {
             throw new IllegalStateException("Field is not in UNPARSED state (" + this.valueState
+ ")");
         }
-
         // Clear value, it will be recomputed
         this.value = null;
         this.validationError = null;
@@ -534,6 +532,10 @@
     public AttributesImpl getXMLElementAttributes() {
         AttributesImpl attrs = super.getXMLElementAttributes();
         attrs.addCDATAAttribute("required", String.valueOf(isRequired()));
+        Whitespace trim = this.definition.getWhitespaceTrim();
+        if (trim != null) {
+          attrs.addCDATAAttribute("whitespace", trim.getName());
+        }
         return attrs;
     }
 



Mime
View raw message