title: How to change wicket DatePicker markup?
body: <p>I'm trying to change DatePicker's HTML markup in Apache Wicket. 
  What I have for now:</p>
  
  <pre><code>public CustomDateTextField(final String id, IModel&lt;T&gt; model, Class&lt;T&gt; type, String modelPath) {
          super(id, model, type, modelPath);
          addDatePicker();
  
  }
  </code></pre>
  
  <p>And this one uses default markup. For example, to initialize this one I use this Java code:</p>
  
  <pre><code>CustomDateTextField&lt;?&gt; textField = new CustomDateTextField(field, model.bind(field), pathPrefix + "." + field);
  </code></pre>
  
  <p>And this HTML markup:</p>
  
  <pre><code>&lt;input wicket:id="date" name="date" type="text"  size="10" maxlength="10" /&gt;
  </code></pre>
  
  <p>But for testing automation I want to have unique ID available on UI. I mean, if I will inspect my datePicker on UI now, I will have:</p>
  
  <pre><code>&lt;img style="cursor: pointer; border: none;" id="date53Icon" src="resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif" alt="" title=""&gt;
  </code></pre>
  
  <p>But I need to make this specific datePicker unique. For example, I can add to html name="apocalypseDate", but to do that I need somehow extract the markup. And now i'm quite confused how to do that. </p>
  
  <p>Thanks in advance!</p>