question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poll: listener called according to number of pages are opened

See original GitHub issue

1) Environment

  • PrimeFaces version: 6.2 and 7.1
  • Does it work on the newest released PrimeFaces version ? No with the current version which is deployed on-site also has this issue. Version? : 7.1
  • Application server + version: Wild-fly 8.2
  • Affected browsers: Chrome Version 76.0.3809.132 (Official Build) (64-bit)

2) Expected behaviour:

p:poll should wait and call only once after the interval time even though how many pages duplicate pages are open. …

3) Actual behaviour

whenever I am opening multiple duplicates pages it is increasing count according to the number of pages I have opened after interval time and listener calls. …

4) Steps to reproduce

Open multiple or 5 duplicates pages Primefaces Poll

and after interval time it is increasing value by pages. …

5) Sample XHTML

<h:form> <h:outputText id="txt_count" value="#{counterView.number}" /> <p:poll interval="1" listener="#{counterView.increment}" update="txt_count" /> </h:form>

6) Sample bean

`@ManagedBean @ViewScoped public class CounterView implements Serializable {

private int number;

public int getNumber() {
    return number;
}

public void increment() {
    number++;
}

}` …

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tandraschkocommented, Sep 2, 2019

So you are looking for a poll, which interval synchronizes for all open tabs for the same view?

0reactions
mellowarecommented, Jun 13, 2020

Agreed. I am going to close this ticket for now in the name of cleaning up this issues board. As there is nothing we can really do about it and a custom solution is warranted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PrimeFaces Poll listener not called - Stack Overflow
I have a jsf page with a p:poll tag with a listener and an update. The update is called but the listener is...
Read more >
Azure Application Gateway listener configuration
A listener is a logical entity that checks for incoming connection requests by using the port, protocol, host, and IP address.
Read more >
In computer programming, we were often asked to use event ...
Listening is interrupt driven like answering the phone when it rings. Polling is like picking up the phone very few seconds to see...
Read more >
2022 Email Marketing Statistics & Benchmarks - Mailchimp
What kind of open rates should companies like yours expect? How many bounces are too many? What data do content marketers rely upon...
Read more >
SAT Practice Test #7
Test begins on the next page. ... of birds, and started to no human tones—Eppie was a ... grew articulate, and called for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found