How to display error messages in the visualforce page ?



How to display error messages in the visualforce page ?..

Answer / Husna Tabassum

To display error messages on a Visualforce page, you can use Apex pagesController methods like `addError()` or `addMessages()`. The added errors or messages will be displayed in the respective error or message component when the page is rendered. You can also leverage `apex:messages` and `apex:pageBlockMessages` components to handle server-side messages.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

How do I send an email from salesforce?

1 Answers  


What is a Workflow Task?

1 Answers  


What is the main difference between using data table vs page block table tags?

1 Answers  


What workflow actions can be performed in salesforce?

1 Answers  


How you can use datetime field as a criteria in soql query ?

1 Answers  


What are the different Annotations in Salesforce and tell me with examples?

1 Answers   Cognizant,


Why do we use Salesforce?

1 Answers  


What is bulk api? : salesforce Data Management

1 Answers  


What are default methods for Batch Apex?

1 Answers   American Express,


What the junction object is and what is the use?

1 Answers  


Explain salesforce.com security implementation with respect to profiles, roles, and hierarchy, sharing rules, owd(org-wide default settings)?

1 Answers  


What are tile report types?

1 Answers  


Categories