X

Shay Shmeltzer's Oracle Development Tools Tips

  • December 22, 2010

Using the af:poll to refresh parts of the page periodically

Shay Shmeltzer
Director of Product Management - Oracle

Just a quick sample of using the af:poll components. A component that enables you to do things in a periodic fashion. For example check if something has changed on the server and update the UI.

A more "modern" approach is to actually use push instead of pull, and ADF Faces will allow you to do that with ADS (here, and here). But the poll still has its place.

It's quite useful for dashboard type of applications where you want periodic updates of the graphs shown on the page.

As you can see it's quite simple to use the tag.

I also show my lazy approach to invoking declarative operations on a data control from a backing bean without manually writing code.

Join the discussion

Comments ( 6 )
  • Martin Sunday, December 26, 2010
    Hi,
    is this video without sound?
    Best regards
  • shay.shmeltzer Monday, December 27, 2010
    oops, good catch - I updated this entry with a video that has the sound now.
  • Dn Friday, February 25, 2011
    It will be more useful if you have a sample workspace. It is really hard to see what/why you are doing from video. It is typical Oracle way
  • shay.shmeltzer Friday, February 25, 2011
    One note on the quality of the video - if you have a good enough broadband, you can set the resolution of the youTube video to 720 and expand it to full screen - this usually allows you to see exactly what is going on.
  • guest Wednesday, June 8, 2011
    Very informative video.. thanks for sharing.
  • Don Kleppinger Friday, May 11, 2012

    People should be aware that the af:poll event will keep the session alive. In a secure application we had to implement code that would differentiate between user events and poll events and expire the session accordingly if there was no real user activity within the session timeout period.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.