Datefield loopup starts with sunday, not monday

Hi.

In Slovenia, our calendar starts with monday, then continues with tuesday,wednesday, and finishes with sunday.

However, calendar in vaadin starts with sunday, continues with monday and ends with saturday.

I am using:
setLocale(new Locale(“sl”,“SI”));

Am I missing something? How can I set that calendar so that it starts with monday?

thanks and bye,
ivan

Your code is correct and the bug seems to be in the Slovenian locale provided with the JRE.

GregorianCalendar.getFirstDayOfWeek() returns Sunday for the Slovenian locale, at least in my JRE 1.6.0_16.

So the fix is not to use Slovenian locale.

Thanks for info!

Small country :frowning: ignored by big sun