2 Replies Latest reply on Oct 18, 2007 3:56 PM by pinaev

    rich:calendar datePattern problem

    pinaev

      Hi,

      "rich:calendar" does not seem to work when the datePattern attribute is read from a resource bundle. The component itself works, presenting the date validly, but the validation of the date fails giving an error message that the entry is not recognized as a valid date.

      Is there something I am doing wrongly?

      Here is a code sample:

      <h:form id="myForm">
      <rich:calendar id="startDate" popup="true" value="#{myBean.startDate}" datePattern="#{msg['application.datePattern']}" locale="#{myBean.locale}"/><br/>
      <h:message for="startDate"/>
      </h:form>
      


      "application.datePattern" in the resource bundle is defined as

      application.datePattern=yyyy-MM-dd
      


      and startDate property of the backing bean is of type java.util.Date. The property setter method is not called when the form is submitted, but instead an error message is displayed.

      Please confirm existance of the bug. Thanks!