0 Replies Latest reply on Jun 24, 2008 9:05 AM by Matthias Hueller

    How to set a delay when using <a4j:support>

    Matthias Hueller Novice


      I'm using the following code to add Ajax functionality to a <h:inputText>:

      <h:form id="myform">
       <h:inputText id="myinput" value="#{userBean.name}">
       <a4j:support event="onkeyup" reRender="outtext" />
       <h:outputText id="outtext" value="#{userBean.name}" />

      It works fine, but now I'm trying to set a short delay to slow down the output in <h:outputText>. The output should only appear when the user stops typing for several seconds.

      Any idea how to add a delay to <a4j:support>?