O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing tasks periodically using a poll component

PrimeFaces provides poll component, which can be used to perform actions via JSF managed bean methods, periodically on regular intervals.

Suppose we want to display current time on web pages. We can do it by using poll component. We can update the currentTime view component using <p:poll> component to display current time for every second without reloading the entire page.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required