P:Poll problem

UI Components for JSF
Post Reply
pfUser
Posts: 15
Joined: 24 Jan 2011, 18:31

15 Feb 2011, 18:41

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.

pfUser
Posts: 15
Joined: 24 Jan 2011, 18:31

16 Feb 2011, 14:42

Any ideas?

Please, I need to fix this urgently!!! 10x

sandeep11r
Posts: 2
Joined: 27 Feb 2011, 09:15

21 Mar 2011, 16:33

I am also facing the same problem. Due to this the expensive server calls are called frequently. Is there any fix for it?

sandeep11r
Posts: 2
Joined: 27 Feb 2011, 09:15

23 Mar 2011, 13:56

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Mar 2011, 14:54

Could not replicate the issue with 2.2.1;

http://www.primefaces.org/showcase/ui/poll.jsf

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests