2 Replies Latest reply on Aug 15, 2009 10:05 PM by Dennis Ryan

    ajax rerendering richtable via calendar ondatechange

    Dennis Ryan Newbie

      I am having trouble getting a rich:calendar date change event to rerender a rich:datatable. Can anyone provide an example or tell me what I am missing in the code below. Specifically I want to rerender my datatable with the new date selected from the calendar component, the data for the datatable will need to be refetched from the backing database durring/after the date is changed in the calendar component. I have tried ajax listeners and several other tricks but I can't get it to work.

      <a4j:keepAlive beanName="DemoRequestManager" />
       <h:commandButton value="export" title="Save Spreadsheet" image="/images/icons/save.gif" action="${DemoRequestManager.exportSpreadSheet}"/>
       <rich:calendar id="classDateId" value="${DemoRequestManager.classDate}" popup="false"
       ajaxSingle="false" >
       <a4j:support event="ondateselected" reRender="demoRequestManagerTable"
       ignoreDupResponses="true">
       </a4j:support>
       </rich:calendar>
       </a4j:region>