title: Primefaces calendar allows invalid date
body: <p>I am using primefaces calendar but i am allowed to enter invalid date.For e.g. enter date as 32-06-2012 in the input box for date field and save the record. It is saving the date as is saving the date as 02-07-2012. Same behavior can be observed in showcase of primefaces also.</p>
  
  <p>Reference : <a href="http://www.primefaces.org/showcase/ui/calendarBasic.jsf" rel="nofollow">http://www.primefaces.org/showcase/ui/calendarBasic.jsf</a></p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;p:calendar id="copyStartDateCalendar" pattern="dd/MM/yyyy"
  
           mode="popup" showOn="button" size='8' &gt;
  
                  &lt;f:convertDateTime pattern="MM/yyyy" /&gt;
  
  &lt;/p:calendar&gt;
  </code></pre>
  
  <p>What should be done as there seems to be some error with the component itself.</p>
  
  <p>Thanks &amp; Regards</p>
  
  <p>Tarun Madaan</p>