You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/07/18 11:09:23 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/intake/model Field.java
henning 2003/07/18 02:09:23
Modified: src/java/org/apache/turbine/services/intake/model Field.java
Log:
Actually set the emptyValue from the XmlField.
Revision Changes Path
1.15 +12 -1 jakarta-turbine-2/src/java/org/apache/turbine/services/intake/model/Field.java
Index: Field.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/intake/model/Field.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Field.java 18 Jul 2003 09:08:00 -0000 1.14
+++ Field.java 18 Jul 2003 09:09:23 -0000 1.15
@@ -224,6 +224,17 @@
+ field.getDefaultValue(), e);
}
+ try
+ {
+ setEmptyValue(field.getEmptyValue());
+ }
+ catch (RuntimeException e)
+ {
+ log.error("Could not set empty value of " +
+ this.getDisplayName() + " to "
+ + field.getEmptyValue(), e);
+ }
+
String validatorClassName = field.getValidator();
if (validatorClassName == null && field.getRules().size() > 0)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org