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

Default start week day based on locale

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.1
    • Component/s: wicket-datetime
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              frankbille Frank Bille Jensen
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: