Javatpoint Logo
Javatpoint Logo

PrimeFaces Ajax Poll

PrimeFaces provides <p:poll> component which is used to makes ajax calls periodically. It provides an option interval which is used to specify time.

The following example explains the usage of this component. This example contains the following files.

JSF File

// ajax-poll.xhtml




This page updates each time on the basis of specified time. Initially, it is set to 0.

PrimeFaces Poll 1

Page after update.

PrimeFaces Poll 2

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA