Wicket
  1. Wicket
  2. WICKET-1252

Default start week day based on locale

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial 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.

        Activity

        Hide
        Fredrik Jonsson added a comment -

        The ability to have the correct start day based on locale is important if wicket should be used with real world users.

        Show
        Fredrik Jonsson added a comment - The ability to have the correct start day based on locale is important if wicket should be used with real world users.
        Hide
        Frank Bille Jensen added a comment - - edited

        Just to mention it, but there is nothing that prevents users from doing it them selves in their own #configure in current wicket. It's just to have a decent default.

        Show
        Frank Bille Jensen added a comment - - edited Just to mention it, but there is nothing that prevents users from doing it them selves in their own #configure in current wicket. It's just to have a decent default.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development