Issue:
When you triger a adf:poll, you may want to stop it untill some conditions are meet. Following solution will show you how to achieve it.
Solution:
public void onPoll(PollEvent pollEvent) { RichPoll poll = (RichPoll)pollEvent.getComponent(); System.out.println("...setting to -1"); poll.setInterval(-1); AdfFacesContext.getCurrentInstance().addPartialTarget(poll); }Before you did above thing, please remember set clientComponent="true" inside <adf:poll>.
Following is explaination which is provided by Matthew Carrigy
This seems to be a better method that setRendered(false), as I noticed that even though the pollEvent isn't fired after setting the rendered attribute to false, it does still poll the server at the said interval, and any loss of connection will result in the popup message over and over until the window is closed. When using the second method this does not occur. Setup a statusIndicator on the page and you will see it still polling.
Reference: