Poll: listener called according to number of pages are opened
See original GitHub issue1) 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:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So you are looking for a poll, which interval synchronizes for all open tabs for the same view?
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.