Salesforce Certified Platform Developer II — Question 95
Choose the correct definition for <apex:actionPoller>.
Answer options
- A. Allows for controller methods to be called directly from Javascript. Must be encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code
- B. Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
- C. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
- D. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them
- E. Signifies which components should be processed by the server when an AJAX request is generated
Correct answer: B
Explanation
<apex:actionPoller> is specifically designed to send an AJAX request at defined intervals, making option B the correct choice. Options A, C, D, and E describe other functionalities related to AJAX in Visualforce but do not accurately define the purpose of <apex:actionPoller>.