I need to set my own date pattern and locale on jQuery UI DatePicker in Wicket. The problem is that DatePicker seems to be ignoring all settings. Here is my code:
dateField = new DatePicker("dateField", new ComponentPropertyModel<>(id), "d.M.yyyy", new Options());
System.out.println("locale: " + dateField.getLocale());
System.out.println("format: " + dateField.getTextFormat());
add(dateField);
Output in stdout looks promising:
locale: cs
format: d.M.yyyy
But still on page I see only english locale and absolutely different date format.
Am I doing something wrong or there is just bug in jQuery UI for Wicket? And how can I fix it?
Thanks in advance!