Salesforce
PDII · Question #18
A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?
Sign in or unlock PDII to reveal the answer and full explanation for question #18. The question stem and answer options stay visible for context.
Question
A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?
Options
- A<apex:message for="info"/>
- B<apex:facet name="messages" />
- C<apex:pageMessage severity="info" />
- D<apex:pageMessages />
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.