title: selectonemenu showen red when have date value
body: <p>i have a sample selectOneMenu that have List of date and date as values but when i try to validate i have it red i will show you my sample example :</p>
  
  <p>my managed bean :</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public class Testbean {
      @EJB
      private ManageOfPlanifieLocal manageOfPlanifie;
          List&lt;Date&gt; listdate = new ArrayList&lt;Date&gt;();
          Date newdate;
  
   @PostConstruct
      public void initialize() {     
          listdate=manageOfPlanifie.retournerdatedesplanif();;
      }
      public String gototest2(Date date)
      {
  
      return "test2.xhtml?faces-redirect=true";
      }
      public List&lt;Date&gt; getListdate() {
          return listdate;
      }
      public void setListdate(List&lt;Date&gt; listdate) {
          this.listdate = listdate;
      }
  
      public Date getNewdate() {
          return newdate;
      }
  
      public void setNewdate(Date newdate) {
          this.newdate = newdate;
      }  
  }
  </code></pre>
  
  <p>and this is my two jsf pages :</p>
  
  <p>test1.xhtml</p>
  
  <pre><code>     &lt;h:outputLabel for="dateplanif" value="date de planification : " /&gt;
       &lt;p:selectOneMenu id="dateplanif" value="#{ testbean.newdate}"&gt;   
           &lt;f:selectItems value="#{testbean.listdate}" var="da" itemValue="#{da}" /&gt;  
  &lt;/p:selectOneMenu&gt;        
  
    &lt;p:commandButton value="suivant"  style="color:black;" action="#{testbean.gototest2(testbean.listdate)}" update="@form" /&gt;
  </code></pre>
  
  <p>test2.xhtml</p>
  
  <pre><code>  &lt;h2&gt;Choix de l'equipe&lt;/h2&gt;  
       &lt;h:outputText value="Date : "/&gt;   
               &lt;h:outputText value="#{ testbean.newdate}"/&gt;
  </code></pre>
  
  <p>the problem i do sample transfer of data with out converstion just simple and i get that :</p>
  
  <p><img src="https://i.stack.imgur.com/xmiQb.png" alt="enter image description here"></p>
  
  <p>do you know i have it red and i cant move to the next page ??</p>