3 Replies Latest reply on Apr 24, 2008 9:47 PM by Yurii Kartsev

    rich:calendar converter->validator error - why?

    Yurii Kartsev Apprentice

      Good afternoon, dear RF developers!

      Faced one trouble: my form has two almost identical fields with rich:calendar, one of it is:

       <a4j:region id="calendar_employeeDocumentDateEdit" layout="block">
       <rich:calendar id="employeeDocumentDateEdit"
       required="true" requiredMessage="#{constMan.requiredMessage}"/>
       <rich:message styleClass="rich_error_message" for="employeeDocumentDateEdit">
       <f:facet name="passedMarker">
       <h:graphicImage value="images/valid_ok.gif" />
       <f:facet name="errorMarker">
       <h:graphicImage value="images/valid_err.gif" />

      When I put in calendar fields valid date like "15.01.2008", and submitting the form, I get in the logs this:
      "21:40:16,093 ERROR [CalendarRendererBase] Could not instantiate converter for type class java.util.Date: java.lang.NullPointerException"

      and then my view is refreshed with validation errors at calendar fields saying "fields are empty". What's wrong? It was ok in RF 3.1.4... Really need help, because it's a major problem...

      Now I use RF 3.2.1 SNAPSHOT ("v.3.2.1-SNAPSHOT SVN $Revision: 7513 $ $Date: 2008-03-31
      21:05:05 -0400 (Mon, 31 Mar 2008) $")
      JSF 1.2_08-b06-FCS + Facelets 1.1.13
      and JBoss 4.2.2 GA

      Thanks for any help in advance.