1 Reply Latest reply on Apr 4, 2012 10:32 AM by Liz Glasser

    Rich:calendar valueChangedListener not called on the first click

    Liz Glasser Newbie

      Using Richfaces 4, I have a calendar defined as:

       

      <rich:calendar ajaxSingle="true" popup="false" cellWidth="20px" cellHeight="40px"

              todayControlMode="hidden"

              dataModel="#{myModel}"

              showWeeksBar="false"

              showFooter="false"

              value="#{myModel.selectedDate}"

              valueChangeListener="#{myBean.valueChanged}">

              <a4j:ajax render="mySurroundingPanel" oncomplete="alert('this is called');"/>

             

          </rich:calendar>

       

      The first time I select a date, the "This is called" pops up but the value changed listener is not called. After that if I select a new date the listener is called and the pop up is displayed.

       

      Any ideas? I have tried adding a listener to the a4j:ajax directly and see the same there -- first selection = no call; subsequent selections=works fine.

       

      Thank you,

       

      Liz