nerdexam
Salesforce

CRT-450 · Question #118

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?

The correct answer is A. <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: pageMessages />
  • B<apex: pageMessage severity="info''/>
  • C<Apex: facet name='' message''/>
  • D<Apex: message for='' info''/>

How the community answered

(23 responses)
  • A
    78% (18)
  • B
    9% (2)
  • C
    9% (2)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice