
Could anybody help me with this problem?
I’l like to use Vaadin’s DateField in 24 hour mode, not in am and pm mode.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately overriding 12/24h clock setting to something else than Locale says is not supported.
To add such a service, I would inherit InlineDateField and add methods for overriding 12-24 clock setting. On the client-side one must take a look at VCalendarPanel.java and add pass this setting to if statement that calls getDateTimeService().isTwelveHourClock().
On the other hand – maybe it would be easier to somehow define a custom locale to the set of all supported locales.
Third hacky alternative would be to override LocaleService.java class in the GWT copilation process and ensure that isTwelveHourClock() returns false.
(did not test any of these approaches)