6 Replies Latest reply on Oct 26, 2009 7:01 PM by Ling Ip

    Rich:Calendar any working sample?

    Ling Ip Newbie

      I have tried all the combinations for Rich:Calendar but no luck to pass the date to my backing bean. I have defined the backing field to be String, Date, HTMLCalendar without success. All other fields work OK.

      I would like to see a working sample of Rich:Calendar and the backing bean.

      This is my test code that is not working. Eventually I need this Calendar column to be in an ExtendedDataTable.

      <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      <jsp:directive.page contentType="text/html;charset=utf-8" />
      <f:view>
      <a4j:form>
      <rich:panel header="Test Date"
      style="width: 925px">
      <rich:calendar value="#{dateBean.testDate}"
      datePattern="MM/dd/yyyy" ajaxSingle="true"
      showApplyButton="false">
      </rich:calendar>
      </rich:panel>
      </a4j:form>
      </f:view>
      </jsp:root>