4 Replies Latest reply on Jun 9, 2008 9:48 AM by rcroonenberghs

    calendar with multiple ajax event

    rcroonenberghs

      Hi,

      I want to use the calendar and added the onchanged event to update my page. this works when I choose a new date from the popup, but it does not work when I change the text input part manualy.
      How can I use the calendar so that I can reload my page when I
      -type a new date in the input field
      -choose a new date from the popup.

      Is it possible to have somthing like this;
      <rich:calendar id="viewDate" enableManualInput="true" reRender="resourcelist" value="#{devResourcePlanningFilter.viewDate}" immediate="true">
      <a4j:support event="onchanged, onblur" oncomplete="sortables_init()" reRender="resourcelist"/>
      </rich:calendar>

      or more like this;
      <rich:calendar id="viewDate" enableManualInput="true" reRender="resourcelist" value="#{devResourcePlanningFilter.viewDate}" immediate="true">
      <a4j:support event="onchanged" oncomplete="sortables_init()" reRender="resourcelist"/>
      <a4j:support event="onblur" oncomplete="sortables_init()" reRender="resourcelist"/>
      </rich:calendar>

      Roel