function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Multiple Message panes for different components



I have been looking at the VisualForce component reference for the Apex:Message component.


In the example I have notices that one can have two Apex:Message components, using the "For" parameter.


Could someone please help me understand how I can use this, when I am using custom objects, and generating my own messages using the following code

Apexpages.addMessage( new Apexpages.Message(ApexPages.severity.ERROR,'My Message here'))


I could not find documentation of this.