How
to display error messages in the visualforce page
In Apex use below code to
create the error message for visualforce.
Apexpages.addMessage( new
ApexPages.Message (ApexPages.Severity.ERROR, 'Required fields are missing. '));
in Visualforce page add below
tag where you want to display the error message.
<apex:pageMessages
></apex:pageMessages>
No comments:
Post a Comment