Salesforce
PDII · Question #102
What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)
The correct answer is B. <apex:actionFunction action="{!Save}" name="Save" rerender="thePageBlock"/> D. <apex:actionSupport action="{!Save} " event="onchange" rerender="thePageBlock"/>. See the full explanation below for the reasoning.
Question
What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)
Options
- A<apex:commandFunction action="{!Save}" value="Save" rendered="thePageBlock"/>
- B<apex:actionFunction action="{!Save}" name="Save" rerender="thePageBlock"/>
- C<apex:commandButton action="{!Save}" value="Save" redraw="thePageBlock"/>
- D<apex:actionSupport action="{!Save} " event="onchange" rerender="thePageBlock"/>
How the community answered
(34 responses)- A6% (2)
- B82% (28)
- C12% (4)
Community Discussion
No community discussion yet for this question.