title: Primefaces poll stops automatically
body: <p>I have a problem with <code>p:poll</code></p>
  
  <p>The thing is im using it all over my code, and it works fine. So the problem probably comes from somewhere else.. but i cant figure out where..</p>
  
  <p>In this particular place, <code>p:poll</code> stops working after 50 seconds. I can't find either a solution or a similar answer.</p>
  
  <pre><code>    &lt;h:form&gt;
          &lt;h:panelGroup id="check_sitting"&gt;
  
              &lt;h:panelGroup rendered="#{!(commonBean.idAnonymous eq null || commonBean.idAnonymous eq '') and !commonBean.hasShownLoginModal}"&gt;
  
                  &lt;script&gt;                
                      $("#modalWelcome").modal("show");
                  &lt;/script&gt;
              &lt;/h:panelGroup&gt;
          &lt;/h:panelGroup&gt;
          &lt;p:poll interval="1" listener="#{commonBean.listenpol}" update="check_sitting"  /&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>The "listenpol" method is a test i am doing to check what is happening. But it's not helping..</p>
  
  <pre><code>    public void listenpol(){
          System.out.println("listenpol " + DateTime.now());
      }
  </code></pre>
  
  <p>What happens: it refreshes correctly for about 50 seconds. After that, it stops.</p>
  
  <p>Thanks in advance
  And sorry if its a dumb question. i just dont get it</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>im posting more code. I deleted the script. Right now it looks like this:</p>
  
  <pre><code>&lt;h:body&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-sm-3 col-lg-3"&gt;
          &lt;div class="dash-unit"&gt;
  
              &lt;ui:insert name="header"&gt;
                  &lt;ui:include src="/template/common/commonHeader.xhtml" /&gt;
              &lt;/ui:insert&gt;
  
              &lt;ui:insert id="contentInsert" name="content"&gt;
                  &lt;ui:include src="/template/common/commonContent.xhtml"/&gt;
              &lt;/ui:insert&gt;
  
              &lt;ui:insert name="footer"&gt;
                  &lt;ui:include src="/template/common/commonFooter.xhtml" /&gt;
              &lt;/ui:insert&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;h:form&gt;
      &lt;h:panelGroup id="check_sitting"&gt;
  
      &lt;/h:panelGroup&gt;
      &lt;p:poll interval="1" listener="#{commonBean.listenpol}" update="check_sitting"  /&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>I repeat the problem: it printis out what the method says each second (note that this is the final behaviour im hoping to implement, its just a test) but it completely stops after 52 seconds... I really cant figure it out.</p>
  
  <p>I also wanted to add: im using a few other <code>p:poll</code> around my code. maybe this is causing trouble??</p>
  
  <p>Thanks again</p>