I have an "interesting" problem with p:poll in PrimeFaces 2.2. Basically, there is a regular p:poll on my page:
<p:poll interval="30" listener="#{bean.someFunction}" update="someForm"/>
However, I noticed that the second time onwards the poll calls the listener functions more than once. I think it calls it more and more each time. This is unwanted behaviour, so my question is how to fix this and get the listener function called only once each time? Thank you.
P:Poll problem
-
- Posts: 2
- Joined: 27 Feb 2011, 09:15
I am also facing the same problem. Due to this the expensive server calls are called frequently. Is there any fix for it?
-
- Posts: 2
- Joined: 27 Feb 2011, 09:15
Dude. I tried the same poll in a single form. It does call only once for ever.. Then only I realized that I have a single form and 3 sub-pages included in it. And in each of those sub-pages I have 1 poll each.. So that makes dirty server calls ofter. So try to figure out the hierarchy of your form elements.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
-
- Information
-
Who is online
Users browsing this forum: No registered users and 36 guests