title: How to giving validation for dojo datetimepicker using struts validation xml
body: <p>i trying to give validation to the dojo datetimepicker using struts 2 validation xml but no success if someone has gone through the same scenario do help me out </p>
  
  <pre><code>&lt;s:label value="Joining Date"/&gt;
   &lt;sx:datetimepicker name="joiningDate" displayFormat="dd/mm/yyyy"/&gt;
  </code></pre>
  
  <p>and in the validation xml i write</p>
  
  <pre><code> &lt;field name="joiningDate"&gt;
       &lt;field-validator type="required"&gt;
            &lt;message&gt;Select Date.&lt;/message&gt;
        &lt;/field-validator&gt;
    &lt;/field&gt;
  </code></pre>
  
  <p>problem is when i click submit the page submit even if the joinindate field is empty means validation field in not applied</p>