Skip to main content

Visualforce actionPoller Component

About Us
Published by admin
24 March 2016

A timer that sends an AJAX request to the server according to the time interval that you specify. Each request can result in a full or partial page update. This component is an alternative to using setInterval (js).

In attribute action some controller method should be put. For this you must use standard syntax, for example, action="{!someAction}". If an action is not specified, the page simply refreshes.

Attributes enabled and rendered have the same function. With the help of them you can turn your actionPoller on or off.

Id is an identifier that allows the component to be referenced by other components in the page.

Attribute interval sets the time interval between AJAX update requests, in seconds. This value must be 5 seconds or greater, and if not specified, it defaults to 60 seconds. Note that the interval is only the amount of time between update requests. Once an update request is sent to the server, it enters a queue and can take additional time to process and display on the client.

Into attribute oncomplete you can put the JavaScript, which will be invoked when the result of an AJAX update request completes on the client.

Into attribute onsubmit you can put the JavaScript, which will be invoked before an AJAX update request has been sent to the server.

In attribute reRender you can put Id of one or more components that will be redrawn, when the result of an AJAX update request returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs.

In attribute status you can put Id of an associated component that displays the status of an AJAX update request.

You can use attribute timeout, if you need your request to last no more time than it is required. Value of this attribute should be entered in milliseconds.

It is a good practice to make action methods used by <apex:actionPoller> lightweight, to avoid performing DML and to avoid using this component with enhanced lists. <apex:actionPoller> refreshes the connection regularly, keeping login sessions alive. A page with <apex:actionPoller> on it won't time out due to inactivity.

Visualforce actionPoller Component

Question to the expert

We have available resources to start working on your project within 5 business days

2 Senior Developers

1 SF Consultant

2 QA engineers

2 Admins

Related Articles
All articles
JET BI Products. New goals - New journey
It often happens that for a successful result ahead, it is necessary to look back. We are proud that analyzing the work done earlier on JET BI product solutions, we see tremendous efforts and a long list of achievements. Throughout our history, we have developed more than 15 product solutions, some of which are already helping our customers, while the others are successfully resolving our internal needs.
29 July 2021
Salesforce Clouds: when to implement which one
Salesforce became the first company in the world that took CRM to the cloud, enabling companies to access all of their customer information online, from any device, anywhere in the world. A well-thought-out platform provides a great basis for business. And this great idea gave rise to Salesforce Clouds - platform-based solutions for a wide range of industries and business cases. Let’s dive into Salesforce Clouds World and explore when to implement which one.
21 July 2021
3 secrets of effective exam preparation. The magic of eLearning Tool
Have you ever prepared for the exam? For sure, yes. And have you encountered the situation when you had read tons of stuff, but on Day X it turns out that you miss something important? Congratulations! You are one of the million people who faced the problem of inefficient exam preparation. Meet eLearning Tool - the platform by JET BI that will make the corporate ‘students’ life a bit easier.
10 June 2021