3 Replies Latest reply on Oct 2, 2007 3:26 AM by fmarwede

    Question about aj4:push

    samdoyle

      Can you only have one a4j:push defined in a page or can you have multiple ones being defined in different AjaxRegions on the page? In addition what If I call the same

      <a4j:push reRender="msg" eventProducer="#{messageBean.addListener}" interval="3000"/>

      for each AjaxRegion on the page? Do I then need to maintain a list of listeners instead of having just one? In that case is there any issues regarding adding and removing of these listeners or do you just assume that eventually a session will expire either through timeout or the user logging out and they get garbage collected? This brings up another point. What happens if the user loads the same page multiple times? Do I keep getting new requests to add event listeners for the same event?

      Thanks, S.D.

        • 1. Re: Question about aj4:push
          samdoyle

          Anyone monitor these boards?

          • 2. Re: Question about aj4:push

             

            "samdoyle" wrote:
            Anyone monitor these boards?


            100-150 questions and answeres are posted here daily.

            • 3. Re: Question about aj4:push

              I have a question much more simpler to <a4j:push>:

              Is there anyone who can provide a small example to use it? I mean not only the tag but also really working code doing this listener thing. I don't understand the current documentation, at the moment I can't make that working.

              By the way @Sergey: You do a great job! In my opinion what we really need here is a bigger experienced user community not only asking but also answering questions. We are working on that ;-)