Salesforce Certified Platform Developer II — Question 96
Choose the correct definition for <apex:actionSupport>.
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: C
Explanation
<apex:actionSupport> is designed to enhance other components with AJAX capabilities, such as responding to events like onClick or onMouseUp, making option C the correct choice. Options A and D describe different functionalities related to AJAX but do not accurately define <apex:actionSupport>. Option B refers to <apex:actionPoller> and option E addresses component processing, neither of which applies specifically to <apex:actionSupport>.