Activity › Forums › Salesforce® Discussions › What is the difference between apex:pageMessages, apex:pageMessage, apex:Message and apex:Messages in salesforce?
Tagged: Salesforce Visualforce
-
What is the difference between apex:pageMessages, apex:pageMessage, apex:Message and apex:Messages in salesforce?
Posted by Saurabh on April 25, 2017 at 1:12 PMWhat is the difference between apex:pageMessages, apex:pageMessage, apex:Message and apex:Messages
Manpreet replied 9 years, 1 month ago 3 Members · 2 Replies -
2 Replies
-
Hi Saurabh,
apex:PageMessages is a containing component where any messages that have been added to the page will appear.
apex:pageMessage is a component that adds a single message to the page.
apex:message allows you to associate a message with a component.
For more info use this link.
- [adinserter block='9']
-
Hi saurabh,
<apex:message>
A message for a specific component, such as a warning or error. If an or component is not included in a page, most warning and error messages are only shown in the debug log. – http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_message.htm
<apex:messages>
All messages that were generated for all components on the current page. If an or component is not included in a page, most warning and error messages are only shown in the debug log. – http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_messages.htm
<apex:pageMessage>
This component should be used for presenting custom messages in the page using the Salesforce pattern for errors, warnings and other types of messages for a given severity. See also the pageMessages component. – http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_pageMessage.htm
<apex:pageMessages>
This component displays all messages that were generated for all components on the current page, presented using the Salesforce styling. – http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_pageMessages.htm
For understanding more refer to this link : http://sfdchackathon.blogspot.in/2015/06/difference-between-and.html
Thanks.
Log In to reply.