Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
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?
Correct Answer: A
Option A: <apex:pageMessages /> Correct Answer. The <apex:pageMessages /> component displays all messages that were added to the ApexPages message list, including those added via ApexPages.addMessage(). <apex:facet> is used within certain components to define content for a specific region, not for displaying page messages. Option C: <apex:message for="info"/> Incorrect. <apex:message> displays a message for a specific component with validation errors, not general messages added via ApexPages.addMessage(). Option D: <apex:pageMessage severity="info" /> Incorrect. <apex:pageMessage> is used to display a single message, typically hardcoded in the Visualforce page. Conclusion: To display messages added by ApexPages.addMessage(), the page should include <apex:pageMessages />, which is Option A. Reference: apex https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_pageMessages.htm Option B: <apex:facet name="messages" /> Incorrect.