Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1252

Default start week day based on locale

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.3.1
    • wicket-datetime
    • None

    Description

      Add something like this to the DatePicker#configure method:

      widgetProperties.put("START_WEEKDAY", Calendar.getInstance(getLocale()).getFirstDayOfWeek()-1);

      (though preferable more explicit about the locale-to-YUI week day mapping)

      In this way users have full flexibility as well as a decent default.

      Attachments

        Activity

          People

            Unassigned Unassigned
            frankbille Frank Bille
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: