Wednesday Dec 22, 2010

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

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.

About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today