nerdexam
Salesforce

PDII · Question #18

PDII Question #18: Real Exam Question with Answer & Explanation

The correct answer is D. <apex:pageMessages />. See the full explanation below for the reasoning.

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 />

Community Discussion

No community discussion yet for this question.

Full PDII Practice