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

queue: if request grouping id not set - all requests seems similar.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone1
    • Fix Version/s: 4.0.0.Milestone3
    • Component/s: core
    • Labels:
      None

      Description

      <a4j:queue />

      <a4j:commandButton value="Update 1" action="#

      {userBean.now1}

      "
      render="now1" status="ajaxStatus_1">
      </a4j:commandButton>
      <a4j:commandButton value="Update 2" action="#

      {userBean.now2}

      "
      render="now2" status="ajaxStatus_2">
      </a4j:commandButton>
      Both actions has sleep for 5 seconds.
      If I click 1 than 2 and than 1 again - what I see in log:

      debug[17:29:38.873]: New request added to queue. Queue requestGroupId changed to undefined
      debug[17:29:38.877]: Queue will wait 0ms before submit
      debug[17:29:38.882]: richfaces.queue: will submit request NOW
      info [17:29:38.887]: Received 'begin' event from <input id=j_idt66:j_idt85 class=class org.richfaces.component.UICommandButton ...>
      debug[17:29:39.273]: New request added to queue. Queue requestGroupId changed to undefined
      debug[17:29:39.274]: Queue will wait 0ms before submit
      debug[17:29:39.275]: richfaces.queue: Waiting for previous submit results
      debug[17:29:39.718]: Similar request currently in queue
      debug[17:29:39.719]: Combine similar requests and reset timer
      debug[17:29:39.720]: Queue will wait 0ms before submit
      debug[17:29:39.721]: richfaces.queue: Waiting for previous submit results
      info [17:29:43.946]: Received 'beforedomupdate' event from <input id=j_idt66:j_idt85 class=class org.richfaces.component.UICommandButton ...>
      debug[17:29:43.951]: Server returned responseText: <?xml version="1.0" encoding="utf-8"?> <partial-response><changes><update id="j_idt66:now1"><![CDATA[<span id="j_idt66:now1">qwer wer we r</span>]]></update><update id="javax.faces.ViewState"><![CDATA[4534539995427297793:7924366598625177624]]></update></changes></partial-response>
      info [17:29:43.959]: Listing content of response changes element:
      Element update for id=j_idt66:now1
      <update id="j_idt66:now1"><![CDATA[<span id="j_idt66:now1">qwer wer we r</span>]]></update>
      Element update for id=javax.faces.ViewState
      <update id="javax.faces.ViewState"><![CDATA[4534539995427297793:7924366598625177624]]></update>

      the requests from 1 and 2 - combined.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pyaschenko Pavel Yaschenko
                Reporter:
                ilya_shaikovsky Ilya Shaikovsky
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: