0 Replies Latest reply on Oct 25, 2007 8:25 AM by romaintaz

    rich:calendar, datePattern and whitespaces = bug

    romaintaz

      Hi,

      Your calendar component is great. However, I found the following bug:

      <rich:calendar ... datePattern="yyyy-MM-dd"/>
      


      is working, but not with the following datePattern (it has a whitespace at the end of datePattern):

      <rich:calendar ... datePattern="yyyy-MM-dd "/>
      


      With this component configuration, I can choose a date, but I always get a validation exception that said that my value "could not be understood as a date".

      A simple trim() should solve the problem :o)

      Regards.