Poll (<b:poll >)

<b:poll /> refreshes a part of the screen periodically. It can also call an action or an actionListener.

Basic usage

Current time:
Tue Jan 17 12:53:25 UTC 2017
Counter:
If <b:poll /> is inside the region it updates, you have to set the attribute once="true". Otherwise, <b:poll /> is initialized over and over again and starts to send more and more polls until your server is saturated.
Current time:
Tue Jan 17 12:53:25 UTC 2017
Counter:
Attribute Default value Description
interval 1000 How often is the poll action to be called? Denotes the number of milliseconds between polls.
once false If true, the poll is called only once.
update @form Which region of the screen is to be updated?
execute @none Which input fields are to be sent?
actionListener none Calls an action listener in the JSF bean.
action none Calls a JSF bean method and initiates a navigation.