Setting the First Day of the Week to Monday in the SelectInputDate component


Jose asks in the OTN Forum how to set the first day of the week in the <af:SelectInputDate> component.
For example, suppose that you set up the preferred language of your Browser to French/Belgium [fr-be].

The calendar will show the following days: dim., lun., mar., mer., jeu., ven., sam. for Sunday, Monday, Tuesday, Wednesday, Thursday and Friday respectively:
CalendarInFrench:

However, in Belgium, as in many other European countries, the first day of the week is the Monday and not the Sunday.
So the calendar should display: lun., mar., mer., jeu., ven., sam., dim.  instead.

Is it possible to change this in ADF Faces ?

Unfortunately, it's not possible in the current release of JDeveloper.
This will be possible from JDeveloper 11 onwards (Enhancement Request 5653036 for those who have access to Metalink), where the chooseDate component will take the locale into account to display dates (and also numbers).
For more information, see "Add support for formatting locale, separate from translation locale".

Comments:

Post a Comment:
Comments are closed for this entry.
About

Didier Laurent - Sr Principal Support Engineer in the JDeveloper team

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today