1 Reply Latest reply on Jun 1, 2011 5:00 AM by bcn

    how to reset client cache of autocomplete

    bcn

      I have a h:selectOneMenu with provinces and a

      Richfaces 4 autocomplete with mode=cachedAjax with cities.

      When the province is changed, the client cache of autocomplete should be cleared, otherwise you get the cites of the wrong province suggested if the same prefix is used.

      Is this possible? I tried things like

      <a4j:ajax render="cityName:cityNameList"></a4j:ajax>

      within the menu, but doesn't help.

      It would be nice to have a javascript function which could be called in an onXXX function to clear the autocomplete cache.

       

      Thanks

        • 1. Re: how to reset client cache of autocomplete
          bcn

          Any idea for a workaround?

           

          If not, is it possible to control how often the ajax requests are fired? If a user types without pause in the input,

          it shouldn't fire a request on every key, but only after the user pauses a certain amount of time, like one second.

           

          Thanks