seade       2003/09/29 04:24:05

  Modified:    src/java/org/apache/turbine/services/intake/validator
                        DateStringValidator.java
               xdocs    changes.xml
  Log:
  Fixed the intake DateString flexible rule so that it applies to the format rules and 
not just to the default locale format.
  
  Revision  Changes    Path
  1.11      +5 -5      
jakarta-turbine-2/src/java/org/apache/turbine/services/intake/validator/DateStringValidator.java
  
  Index: DateStringValidator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/intake/validator/DateStringValidator.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DateStringValidator.java  29 Sep 2003 05:12:31 -0000      1.10
  +++ DateStringValidator.java  29 Sep 2003 11:24:04 -0000      1.11
  @@ -170,15 +170,15 @@
               flexible = Boolean.valueOf(constraint.getValue()).booleanValue();
           }
   
  -        if (dateFormats.size() == 0 || flexible)
  +        if (dateFormats.size() == 0)
           {
               df = DateFormat.getInstance();
  -            df.setLenient(true);
  +            df.setLenient(flexible);
           }
  -
  -        if (dateFormats.size() != 0)
  +        else
           {
               sdf = new SimpleDateFormat();
  +            sdf.setLenient(flexible);
           }
       }
   
  
  
  
  1.69      +4 -0      jakarta-turbine-2/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/xdocs/changes.xml,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- changes.xml       29 Sep 2003 05:58:47 -0000      1.68
  +++ changes.xml       29 Sep 2003 11:24:05 -0000      1.69
  @@ -115,6 +115,10 @@
          setting it to the appropriate value (it shouldn't be in the group 
          anyway).
       </li>
  +    <li>
  +       Fixed the intake DateString flexible rule so that it applies to the
  +       format rules and not just to the default locale format.
  +    </li>
     </ul>
   </p>
   </subsection>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to