[opencms-dev] Problem with Date Picker widget on OpenCms 8.5.1
Arturo Martín Lladó
arturo.martin.llado at gmail.com
Mon Mar 4 13:52:04 CET 2013
Hi,
I see that, by default, the date picker widget shows Sunday as the
first day of the week. I tried to configure the widget via layout
settings like this:
[...]
<xsd:element name="dateTimeField" type="OpenCmsDateTime" minOccurs="1"
maxOccurs="1" />
[...]
<layout element="dateTimeField" widget="DateTimeWidget"
configuration="mondayFirst=true"/>
[...]
but I see no change.
I've downloaded the OpenCms 8.5.1 code and established a breakpoint
over the CmsCalendarWidget's calendarInit() method, but the method
it's never called when I'm editing the content (loading the element
form or setting a new datetime value). Other methods are called, like
getConfiguration(), isInternal(), newInstance(), etc.
Am I doing something wrong? Am I missing something here?
Funny thing: when I click on the "Preferences" button of the workplace
popup, the method is called. The only datetime field that I see there
is the Time Warp option, and the calendar shown there is correctly
localized for my settings (langua/locale = es).
Maybe is a bug, but I really need a little bit of feedback here.
Regards,
--
Arturo Martín Lladó
More information about the opencms-dev
mailing list