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

a4j:push events (dataavailable) do not trigger a4j:ajax listener

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.0.Final, 4.5.1
    • Fix Version/s: 4.5.2
    • Component/s: component-push/poll
    • Labels:
    • Environment:

      Mojarra 2.2.8, Tomcat 7.0.54, Java 1.7.0_67

      Description

      Considering following usage of a4j:push I would expected that the bound listener method is invoked each time the push component receives data:

      <a4j:push address="mytopic">
          <a4j:ajax event="dataavailable" listener="#{myBean.update()}" execute="@this" render="content"/>
      </a4j:push>
      

      The a4j:ajax behavior itself is called and the "content" component is re-rendered, but the listener method is not invoked.

      It does not work for the "subscribed" event, too.

      The same a4f:ajax markup works for example inside a commandButton with "action" event:

      <h:commandButton value="Test Ajax" action="dummy">
          <a4j:ajax event="action" listener="#{myBean.update()}" execute="@this" render="content"/>
      </h:commandButton>
      

      FYI, this is my dummy listener method for testing purposes:

      public void update() {
          LOGGER.info("update() was called");
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                goeldner Christoph Göldner
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: