2 Replies Latest reply on Apr 10, 2013 12:58 PM by gmlussi

    a4j:ajax listener doesn't work with a4j:push

    mogaba Newbie

      Hello,

       

      I used this article to start with push. I added listener to a4j:ajax, but the method isn't invoked:

      <a4j:push address="sampleAddress">
          <a4j:ajax event="dataavailable" listener="#{pushModel.increment}" render="out" />
      </a4j:push>
      

      The increment() method:

      public void increment() {
              System.out.println("count incremented");
              ++count;
      }
      

      I use Richfaces 4.2.3 with Glassfish 3.1.2.2 (also tried Tomcat 7).