title: Filtering a rich:dataTable using a rich:calendar on a column
body: <p>I'm using richfaces 4.0 and I'm adding some column filters on a rich:dataTable. Now, since I'm filtering a column that contains date, I would like to use a rich:calendar to filter the content of the table. So, following the examples I found, I added the following code to the .xhtml page:</p>
  
  <pre><code>&lt;rich:column filter="#{rerunFilter.aodFilterImpl}"&gt;
      &lt;f:facet name="header"&gt;
          &lt;h:outputText value="Aod Rerun" /&gt;
          &lt;br/&gt;
          &lt;rich:calendar id="aod"
                     datePattern="yyyy-MM-dd"
                     showWeekDaysBar="false"
                     showFooter="false"
                     value="#{rerunFilter.aodFilter}"
                     popup="true"&gt;
              &lt;a4j:ajax event="change" render="main:rerunListTable" execute="@this"/&gt;
          &lt;/rich:calendar&gt;
      &lt;/f:facet&gt;
      &lt;h:outputText value="#{item.aod}"&gt;
          &lt;f:convertDateTime pattern="yyyy-MM-dd" /&gt;
      &lt;/h:outputText&gt;
  &lt;/rich:column&gt;
  </code></pre>
  
  <p>On the server side, I've the filter class where I added the following code:</p>
  
  <pre><code>private String aodFilter;
  
  public String getAodFilter() {
      return aodFilter;
  }
  
  public void setAodFilter(String aodFilter) {
      logger.info("Received "+aodFilter);
      this.aodFilter = aodFilter;
  }
  
  public Filter&lt;?&gt; getAodFilterImpl() {
      return new Filter&lt;Rerun&gt;() {
          public boolean accept(Rerun item) {
              String aod = getAodFilter();
              logger.info("Invoked with "+aod+" Item date "+item.getAod());
              return true;
  
          }
      };
  }
  </code></pre>
  
  <p>When I change the date, using the calendar, I saw in the log the property is correctly but there's something wrong, since I got an exception at the end</p>
  
  <p>11:50:54,484 GRAVE [org.richfaces.log.Context] (http--127.0.0.1-8080-1) main:rerunListTable:j_idt38: 'Wed Oct 12 00:00:00 CEST 2011' could not be understood as a date.: javax.faces.convert.ConverterException: main:rerunListTable:j_idt38: 'Wed Oct 12 00:00:00 CEST 2011' could not be understood as a date.</p>
  
  <p>Where am I wrong?
  thanks
  fil</p>