0 Replies Latest reply on Jun 24, 2008 9:05 AM by altes-kind

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

    altes-kind

      Hello,

      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:inputText>
       <h:outputText id="outtext" value="#{userBean.name}" />
      </h:form>


      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>?

      Thanks!!!

      altes-kind