Choose the correct definition for <apex:messages>.
Select an option, then click Submit answer.
Reference / correct answer:
No formatting; displays all errors on a page
Most accepted answer: D. No formatting; displays all errors on a page
Community votes: D=1
D is correct upvoted 6 times
Selected Answer: D The question is about <apex:messages> not <apex:pageMessages>. Former component isn't formatted, whereas the latter is formatted using salesforce default styling. apex:pageMessages is the component where you can add multiple messages and it shows all the errors with formatting i.e. It displays all the messages that were generated for all components on the current page with formatting. apex:pageMessage is used to display single message i.e. it shows the specified message with formatting. apex:messages is similar to apex:pageMessages i.e. it shows all of the errors but with no formatting i.e. All messages that were generated for all components on the current page will be displayed without formatting. apex:message shows only the error for the specified field i.e. it is used to display message for a specific component. upvoted 1 times
A is the correct ans upvoted 1 times singhkar 3 years, 8 months ago B is the correct ans ..please ignore previous comment Below in the reference https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_messages.htm upvoted 1 times drwebber 3 years, 1 month ago The answer is D All messages that were generated for all components on the current page. If an <apex:message> or <apex:messages> component is not included in a page, most warning and error messages are only shown in the debug log. upvoted 1 times ... ...
B is the correct ans ..please ignore previous comment Below in the reference https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_messages.htm upvoted 1 times drwebber 3 years, 1 month ago The answer is D All messages that were generated for all components on the current page. If an <apex:message> or <apex:messages> component is not included in a page, most warning and error messages are only shown in the debug log. upvoted 1 times ...
The answer is D All messages that were generated for all components on the current page. If an <apex:message> or <apex:messages> component is not included in a page, most warning and error messages are only shown in the debug log. upvoted 1 times