2 Replies Latest reply on Jun 7, 2010 8:00 AM by ilya_shaikovsky

    Behaviour rich:calendar when selecting a date

    joysn71

      Hello,

       

      i want to use rich:calendar for selecting date values and to update a beans property with the selected date and then to re-render a list with filtered rows based on the selected date.

       

      <rich:calendar id="dateselector"
           value="#{calendar.selectedDate}"
           locale="#{calendar.locale}"
           datePattern="#{calendar.datePattern}"
           popup="false"
           showApplyButton="false"
           cellWidth="15px" cellHeight="15px" style="width:180px">
           <a4j:support event="ondateselected" reRender="navigatorPanel, calendarPanel"/>
      </rich:calendar>

       

      But when i select a day in the rich:calendar widget then i get the correct date value, but it

      seems that rich:calendar after calling the getter which deliveres the same date value display

      a day before the mentioned date. if i add 2 hours to the delivered date then rich:calendar

      shows the correct selected date.

      I played with timezone but i am not able to get it right.

       

      Can anybody tell me what i do wrong?

       

      thanks, Chris