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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to