Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop ajax communication with Primefaces poll component

Tags:

jsf

primefaces

I am using primefaces 3.2 and I am using polling. I am able to call stop on the poll but something is running in Firebug after that polling. It stops only if the page gets refreshed. How to stop that call which is running behind.

Thanks in Advance

like image 474
wild Avatar asked Dec 29 '25 06:12

wild


1 Answers

poll.stop() only ignores the incoming response and does not cancell the call.

You cannot stop an Ajax call once it s made (unless you refresh the page)

Firebug shows that Ajax call which is still running, but your code will ignore it.

like image 126
Majid Laissi Avatar answered Jan 01 '26 07:01

Majid Laissi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!