7 Replies Latest reply on May 15, 2010 7:45 AM by Ilya Shaikovsky

    how can I get the updated date in my rich:calendar?

    Mark Rich Newbie

      hi theres,

      I got a problem for the rich:calendar. here is my purpose:
      I want the rerender the output text to display the new updated date once I pick up the date in the rich:calender.

      and here is my codes:

      <h:outputText value="#{timer.time}" id="cal_value" />

      <rich:calendar value="#{timer.time}" popup="true" datePattern="MM/dd/yyyy, HH:mm" enableManualInput="true" >
      <a4j:support event="oninputchange" reRender="cal_value"></a4j:support>
      <a4j:support event="ondateselected" reRender="cal_value"></a4j:support>
      </rich:calendar>

      it can run without any error, but the output text was updated does not my expected. Now the output text will be rerender to privious selected date. for example, I pick up the date as Jul 4, 2008, the output text will not be reRender, and when will pickup another date Jul 7, 2008, the output text will be rerender now but display as Jul 4, 2008 instead what I select just moment.

      did anybody can tell me why? Thx in advance.