title: Primefaces calendar component manually entering date beyond maxdate validation fails
body: <p>I'm trying to add a Calendar  input component in an application.</p>
  <p>The Calendar  input component to pick a datetime and the max date restriction works ie doesn't allow to select future date</p>
  <ul>
  <li>Greys out the future date - works fine / User cannot select a future date</li>
  </ul>
  <p><strong>Problem</strong> is the user can  enter the future date manually, it is not validating this field.</p>
  <p>User is able to enter the future date manually</p>
  <pre><code>5/24/2021
  6/2/2020
  
  &lt;p:calendar id=&quot;userdate&quot; value=&quot;#{calendarView.pricedate}&quot; maxdate=&quot;#{calendarView.maxDate}&quot; /&gt;
  </code></pre>
  <p>calendarView.java</p>
  <pre><code>private Date maxDate = new Date();
  
  public Date getMaxDate() {
      return maxDate;
  }
  
  public void setMaxDate(Date maxDate) {
      this.maxDate = new Date();
  }
  </code></pre>
  <p>Primefaces Version</p>
  <pre><code>&lt;primefaces.version&gt;6.2&lt;/primefaces.version&gt;
  </code></pre>
  <p>How to validate this component when user enters the field value manually, I have added a max date validation attribute.</p>