Timeline for Visualforce page error display
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 18, 2018 at 8:39 | vote | accept | Naveen Singh rajput | ||
May 17, 2018 at 5:47 | comment | added | Santanu Boral | you can take a look my post santanuboral.blogspot.in/2017/10/… | |
May 17, 2018 at 5:20 | comment | added | Naveen Singh rajput | sir can you please give some example | |
May 16, 2018 at 18:32 | comment | added | Santanu Boral | @NaveenSinghrajput you can throw custom validation message during saving. Also, any errors during insert can be shown to user. Here is the parameter type is error, it can be information, based on type of exception you want to show the user | |
May 16, 2018 at 18:24 | comment | added | Naveen Singh rajput | why do we need to throw the error? we are already passing the message in addMessage() | |
May 16, 2018 at 18:08 | comment | added | battery.cord |
Make sure that an error is being thrown (easy way is to insert new Student__c(); , usually fails since theres required fields or expected values), and that your save method rerenders your page messages.
|
|
May 16, 2018 at 18:01 | comment | added | Naveen Singh rajput | sir is my controller class correct? Its still not showing the error message | |
May 16, 2018 at 17:54 | comment | added | Santanu Boral | no need to write inside that | |
May 16, 2018 at 17:54 | comment | added | Naveen Singh rajput | i tried that too .do i need to write anything in side the <apex:pageMessages/>? | |
May 16, 2018 at 17:53 | history | answered | Santanu Boral | CC BY-SA 4.0 |