seade       2003/09/29 04:23:42

  Modified:    src/java/org/apache/turbine/services/intake/validator Tag:
                        TURBINE_2_3_BRANCH DateStringValidator.java
               xdocs    Tag: TURBINE_2_3_BRANCH 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
  No                   revision
  No                   revision
  1.7.2.4   +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.7.2.3
  retrieving revision 1.7.2.4
  diff -u -r1.7.2.3 -r1.7.2.4
  --- DateStringValidator.java  29 Sep 2003 05:12:00 -0000      1.7.2.3
  +++ DateStringValidator.java  29 Sep 2003 11:23:42 -0000      1.7.2.4
  @@ -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);
           }
       }
   
  
  
  
  No                   revision
  No                   revision
  1.60.2.6  +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.60.2.5
  retrieving revision 1.60.2.6
  diff -u -r1.60.2.5 -r1.60.2.6
  --- changes.xml       29 Sep 2003 05:58:32 -0000      1.60.2.5
  +++ changes.xml       29 Sep 2003 11:23:42 -0000      1.60.2.6
  @@ -101,6 +101,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