You need to sign in to do that
Don't have an account?

Question on <apex:pageMessages/>
We can see the error messages once we add the <apex:pageMessages/> tag in to the page. This shows error messages at component level. From where it takes these individual messages? Is it taking it from the field configurations?
Hope I was able to address your question.
All Answers
You can give custom messages by using ApexPages.addmessage(' message goes here ') and the added message would be going to the place where the tag is present
Please view the below developer forum thread for example:
>> https://developer.salesforce.com/forums/?id=906F0000000BG2lIAG
In case if this came in handy can you please choose this as the best answer so that it can be used by others in the future.
Regards,
Anutej
Hope I was able to address your question.