ApexPages,Message, apex:pageMessages,apex:PageMessage,apex:Message,apex:Messages   Leave a comment

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

I’ve not used apex:messages – I can’t see how it particularly differs from apex:pagemessages

ApexPages.Message is the class that is used to model a message. A message isn’t associated with a page until it is added via the ApexPages class.

ApexPages is a class that allows you to access the current page (through ApexPages.CurrentPage()) and manage messages for the current page.

I’d start off adding an apex:pageMessages component to the top of your page and then add some messages in programmatically via the ApexPages methods – that should help clarify things.


Posted 2011年04月26日 by gw8310 in salesforce


Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )


Connecting to %s

%d 博主赞过: