[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-623) <s:selectDate> localization

Ronald van Kuijk (JIRA) jira-events at jboss.com
Thu Jan 11 12:19:26 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-623?page=comments#action_12350563 ] 
            
Ronald van Kuijk commented on JBSEAM-623:
-----------------------------------------

@Gavin: Ok, I shall, in the future, not reopen issues. It is very common within the companies I work for, so I did it automatically. Sorry. Otoh, wasn't this issue closed to quick? Or at least the remaining issues should have been put in as new feature requests.... (just my €0.016)

@Stephan: I had to work on it, since I had to release something today and the (internal) customer did not accept dates in the mdy with / format and instead of hardcoding it I thought: "lets contribute".

btw, Isn't it possible to ask the short format for the local within Java and use that as the default format (unless a dateconverter is specified)  I did not look at it yesterday since I had to little time. 

Besides that, I was thinking of adding some shortcuts since it is almost impossible to use this selectDate to select a birthday (try selecting 02-12-1971 (dmy) you keep clicking...... any thoughts? otoh, the datepicker from icefaces is even worse... all that ajax to select a date..... yuck.... They definately have to improve that component.

@Kasper. A specifying a real dateFormat instead of my two separate fields is better I think. I just needed a quick but configurable solution. If I would have had the time, I'd build a real format.

> <s:selectDate> localization
> ---------------------------
>
>                 Key: JBSEAM-623
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-623
>             Project: JBoss Seam
>          Issue Type: Patch
>          Components: JSF
>    Affects Versions: 1.1.0.GA
>            Reporter: Stephan Bublava
>         Assigned To: Norman Richards
>            Priority: Minor
>             Fix For: 1.1.1.GA
>
>         Attachments: adding-local-to-selectdate-display.txt, selectDate-dateFormat-patch.txt, selectdate-localization-patch-2.txt, selectdate-localization-patch.txt
>
>
> Currently <s:selectDate> is not locale-aware. This affects day names, month names, buttons as well as the date string written to the text field via JavaScript.
> selectdate-localization-patch.txt is a first step to improve this.
> Changes include:
> - Weekends use a distinct CSS style and can be highlighted if desired. (I've changed the booking example to demonstrate this).
> - The first day of the week is no longer harcoded to Sunday, but calculated according to the current locale settings (e.g. Monday for German).
> - Day and month names are localised as well.
> Open issues:
> - Weekends are hardcoded to Saturday and Sunday. I have no idea how determine this info using Calendar, &c. APIs.
> - Date formats are not kept in sync between JSF and JavaScript, which always uses MM/DD/YYYY, regardless of the locale.
> - Button names ("close", "this month") are still hardcoded.
> - It might be more flexible, to translate day / month names with the application ResourceBundle instead of using DateFormatSymbols.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the seam-issues mailing list