2 Replies Latest reply on Apr 30, 2009 3:36 PM by Vitor Fernandez

    ConverterId and pages.xml - reseting hour and minute information

    John Lennon Newbie

      Hi,


      I've generate project with seam-gen. I've added date filter filed based but after pressing Search button the hour and minute fields are always set to 12:00 AM, for example date
      12/14/2007 13:31 AM
      becomes:
      12/14/2007 12:00 AM
      after pressing Search button


      I think it is related with issue that page url after pressing Search contains:


      ...startTime=Dec+14%2C+2007...


      (content is encoded)


      so it looks like hour and minute information is missing !


      - List.page.xml:


      <param name="startTimeFrom" value="#{list.startTime}"
      converterId="org.jboss.seam.ui.DateTimeConverter"/>



      I was also trying this:


      <param name="startTimeFrom" value="#{list.startTime}"
      converterId="javax.faces.DateTime"/>



      with this same result


      - List.xhtml


      <s:decorate id="startTimeField" template="layout/edit.xhtml">
          <ui:define name="label">Start time</ui:define>
          <rich:calendar id="startTime"
        value="#{fixturesHome.instance.startTime}" datePattern="MM/dd/yyyy hh:mm a"/>
      </s:decorate>



      Is it bug in seam?


      Do you have this same problem?


      Do you have workaround for this problem?


      Regards.