You need to sign in to do that
Don't have an account?
miko Lee
How to display the Apex Pages Error Message
Hi guys,
Why it keep on showing me this message (Map key error), instance I want to display the Error Message that I type myself. And, when i view in Log of Developer Console, it got show that I got hit my Error Message but why it still cant show in Visualforce Page???
Please check with below example:
Visual Force Page: Apex Controller: Hope this helps.
Please mark this as solved if it's resolved.
Best Regards,
Nagendra.
try{
} catch(Exception e){
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING, e.getMessage() ));
}
and in your visual force:
<apex:pageMessages id="showmsg"></apex:pageMessages>