title: DatePicker from Wicket jQuery UI ignores pattern and locale
body: <p>I need to set my own date pattern and locale on <a href="http://www.7thweb.net/wicket-jquery-ui/datepicker/DefaultDatePickerPage?7" rel="nofollow noreferrer">jQuery UI DatePicker</a> in Wicket. The problem is that DatePicker seems to be ignoring all settings. Here is my code:</p>
  
  <pre><code>dateField = new DatePicker("dateField", new ComponentPropertyModel&lt;&gt;(id), "d.M.yyyy", new Options());
  
  System.out.println("locale: " + dateField.getLocale());
  System.out.println("format: " + dateField.getTextFormat());
  
  add(dateField);
  </code></pre>
  
  <p>Output in stdout looks promising:</p>
  
  <pre><code>locale: cs
  format: d.M.yyyy
  </code></pre>
  
  <p>But still on page I see only english locale and absolutely different date format.</p>
  
  <p><a href="https://i.stack.imgur.com/vwZQj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vwZQj.png" alt="enter image description here"></a></p>
  
  <p>Am I doing something wrong or there is just bug in jQuery UI for Wicket? And how can I fix it?</p>
  
  <p>Thanks in advance!</p>