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

        Frank Bille Jensen created issue -
        Gerolf Seitz made changes -
        Field Original Value New Value
        Assignee Gerolf Seitz [ seitz ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.3.1 [ 12312500 ]
        Igor Vaynberg made changes -
        Assignee Gerolf Seitz [ seitz ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development