3 Replies Latest reply on Apr 24, 2008 9:47 PM by j-pro

    rich:calendar converter->validator error - why?

    j-pro

      Good afternoon, dear RF developers!

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

      <h:panelGroup>
       <a4j:region id="calendar_employeeDocumentDateEdit" layout="block">
       <rich:calendar id="employeeDocumentDateEdit"
       value="#{amBean.employee.documentDate}"
       enableManualInput="#{amBean.calendarEnableManualInput}"
       popup="#{amBean.calendarPopup}"
       locale="#{amBean.calendarLocale}"
       datePattern="#{amBean.calendarPattern}"
       showInput="#{amBean.calendarShowInput}"
       required="true" requiredMessage="#{constMan.requiredMessage}"/>
       </a4j:region>
       <rich:message styleClass="rich_error_message" for="employeeDocumentDateEdit">
       <f:facet name="passedMarker">
       <h:graphicImage value="images/valid_ok.gif" />
       </f:facet>
       <f:facet name="errorMarker">
       <h:graphicImage value="images/valid_err.gif" />
       </f:facet>
       </rich:message>
      </h:panelGroup>


      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.