ajax4jsf
  1. ajax4jsf
  2. AJAX4JSF-31

a4j:poll only executes once when limitToList="true"

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      31

      Description

      For whatever reason, a4j:poll only executes one time when the attribute
      limitToList is set to "true". It appears that the javascript is not being
      properly reinitialized when the page is recontructed to continue polling.

      A sample is provided below:

      <a4j:region id="region1">
      <a4j:poll interval="5000" action="#

      {backingBean.refetchItems}

      " reRender="items"
      limitToList="true" />
      <h:dataTable id="items" var="item" value="#

      {backingBean.items}

      ">
      ...
      </h:dataTable>
      <a4j:outputPanel ajaxRendered="true">
      I will be redrawn if limitToList is not used.
      </a4j:outputPanel>
      </a4j:region>

      Taking out the limitToList="true" in the above example will allow the polling to
      occur more than once. However, the a4j:outputPanel will also be re-rendered.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            ajax4jsf-issues
            Reporter:
            mojavelinux
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: