You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/02/20 15:27:37 UTC

DO NOT REPLY [Bug 27110] New: - DatePicker doesn't use the current Locale in its formatter

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27110>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27110

DatePicker doesn't use the current Locale in its formatter

           Summary: DatePicker doesn't use the current Locale in its
                    formatter
           Product: Tapestry
           Version: 3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: tapestry-dev@jakarta.apache.org
        ReportedBy: karel.miarka@issa.cz


DatePicker works fine in default locale, but when it is changed it doensn't 
accept any values inserted by the javascript calendar, because it cannot parse 
the month names in the different locale.

IMHO the line 143 of DatePicker.class (I have Tapestry beta 3) should look like 
this:
SimpleDateFormat formatter = new SimpleDateFormat(format, getPage().getLocale
());

eg. the locale should be passed into the SimpleDateFormat instance.
(But I have not tried to recompile tapestry with that change yet).

Regards,
Karel

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org