3 Replies Latest reply on Sep 28, 2010 3:47 AM by liuliu

    a question about requestdelay

    liuliu

      hi,

       

      I have a code snippet like this :

       

      <a4j:form>
          <a4j:queue requestDelay="500" ignoreDupResponses="true" size="1" sizeExceededBehavior="fireNew" />
          <a4j:jsFunction action="#{bean1.action1}" name="changeDateFin"  requestDelay="500"/>
          <a4j:commandLink action="#{bean1.action2}" ajaxSingle="true" requestDelay="1000" />
          <rich:inputNumberSpinner value="#{bean1.fraction}" onchange="changeDateFin()" />
      </a4j:form>
      

       

      when i write something in spinner, then click directly on commanlink. i think the action2 should be called after action1 because it has a 1000ms of delay. But it does not happen like what i want, action1 is callled after action2. Can someone tell me why?

       

      thanks in advance

       

      liumin