Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1174

Change s:selectDate to default the date format pattern based on the Seam Locale

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: None
    • Component/s: JSF Integration
    • Labels:
      None

      Description

      If no pattern is specified, s:selectDate defaults the javascript CAL_DATE_FORMAT to "MM/dd/yyyy". If you use this in conjunction with s:convertDateTime in a locale that uses "dd/MM/yyyy", there calendar behaves very strangely.

      It should be possible to use s:selectDate and s:convertDateTime together and not have to specify a date pattern. It should default to the correct pattern for that locale. Any application with a locale switcher really needs this behaviour.

      One open question would be whether to use the FULL, LONG, MEDIUM or SHORT pattern for the locale, perhaps this could be specified as a parameter. The default is generally medium.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jazir1979 Daniel Young
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: