DatePicker inserts incorrect format date
----------------------------------------

                 Key: WICKET-2133
                 URL: https://issues.apache.org/jira/browse/WICKET-2133
             Project: Wicket
          Issue Type: Bug
          Components: wicket-datetime
    Affects Versions: 1.4-RC2
         Environment: XP SP3, IE6, Firefox 3
            Reporter: Nobutaka Otsuji


1. Add DateTextField component with DateConverter overrides 
   public method "getDatePattern" like below

   @Override
   public String getDatePattern() {
        return "yyyyMMdd";
   }

2. Popup date picker and select single digit month/day
   ex. select 2009/01/01 on date picker

3. Date picker inserts incorrect format date into a text field.
   ex.  "20080101" expected but was "200811"

Maybe it is caused by Javascript functions in 
org/apache/wicket/extensions/yui/calendar/wicket-date.js,
Wicket.DateTime.parseDate and Wicket.DateTime.substituteDate. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to