2 Replies Latest reply on Jul 24, 2014 11:47 AM by Tiago Fraga

    How can I reset the selected data at Calendar component of Richfaces 3.3.2

    Tiago Fraga Newbie

      Hello guys!!

       

      I customized the calendar component to show only months and years and I need reset the selected value to current date whenever user click the Clean button.

      The input value is reseted normally, but the selected options keeps the old value.

      I´ve tried use the following code, but it didn't work:

      #{rich:component('calendarId')}
      

      My project is legacy and uses Richfaces 3.3.2.

      How can I reset the selected data at Calendar component?

       

      Look at the pictures:

       

      1ª Date is setted:

      ok.JPG

      2ª New date is setted after button clean was pressed,  but the selected date isn´t changed:

      fail.JPG