title: "Validation Error: Value is not valid" error from f:datetimeConverter
body: <p>The following code creates a two radio buttons. Each option contains a date value that is successfully converted to a label of the format "yyyy-MM-dd". Once I make a selection and click the next button I get the following error "j_idt12:comDateChoice: Validation Error: Value is not valid". It seems simple enough but somethings wrong. Can any of you spot it? </p>
  
  <p>I'm using JSF 2.0 in glassfish.</p>
  
  <p>Backing bean</p>
  
  <pre><code>public List&lt;SelectItem&gt; getComDateList() {
      List&lt;SelectItem&gt; items = new ArrayList&lt;SelectItem&gt;();
      Calendar cal = GregorianCalendar.getInstance();
      cal.set(Calendar.DAY_OF_MONTH, 1);
      cal.add(Calendar.MONTH, 1);
      Date nextFirst = cal.getTime();
      cal.add(Calendar.MONTH, 1);
      Date followingFirst = cal.getTime();
      items.add(new SelectItem(nextFirst, new SimpleDateFormat("yyyy-MM-dd").format(nextFirst)));
      items.add(new SelectItem(followingFirst, new SimpleDateFormat("yyyy-MM-dd").format(followingFirst)));
      return items;
  }
  </code></pre>
  
  <p>JSF Code</p>
  
  <pre><code>&lt;h:panelGrid columns="2"&gt;
                      &lt;h:outputLabel value="#{msg.FinanceCommencementDate}" for="comDateChoice"/&gt;
                      &lt;h:selectOneRadio id="comDateChoice" value="#{signUpBean.current.commencementDate}" layout="pageDirection"&gt;
                          &lt;f:convertDateTime type="date" dateStyle="short"/&gt;
                          &lt;f:selectItems  value="#{signUpBean.comDateList}"/&gt;
                      &lt;/h:selectOneRadio&gt;
                  &lt;/h:panelGrid&gt;
  </code></pre>