Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13023

a4j:queue Functionality gets lost after Submit (with disabled PARTIAL_STATE_SAVING)

    Details

      Description

      I have noticed that the requestDelay settings or the whole a4j:queue is not working after a page submit.
      When I open the view the requestDelay works fine and 4 seconds after a keyup event in the input field, an ajax request is processed.
      But when I press the commandButton the queue functionality is lost and ajax requests are performed immediately without a delay.

       
      <h:body>
           <h:form id="form">
                <h:commandButton value="Button" />
                <a4j:queue requestDelay="4000"/>
                     <h:inputText>
                          <a4j:ajax event="keyup" ></a4j:ajax>
                     </h:inputText>
           </h:form>
      </h:body>
      

      The same problem exists when I use <a4j:attachQueue>

      I found out that this issue is related with PARTIAL_STATE_SAVING context parameter in the web.xml.
      I need to disable this paramter otherwise some views won't work correctly.
      If this paramter is enabled the a4j:queue works like it should.

      My web.xml:

       
      <context-param>
              <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
                <param-value>false</param-value>
      </context-param>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                macoolio Marco Goetz
              • Votes:
                4 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: