You need to sign in to do that
Don't have an account?
Anna Proviz 11
apex:pageMessages clear()
Hello,
I have an apex:pageMessages tag on my VF Page .
On the controller side I doing
ApexPages.getMessages().clear();
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR,ErrorMsg));
But for some reason the clear() is not working .
I see the collection of old errors with a new one on the Page ...
Somebody please help ...
I have an apex:pageMessages tag on my VF Page .
On the controller side I doing
ApexPages.getMessages().clear();
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR,ErrorMsg));
But for some reason the clear() is not working .
I see the collection of old errors with a new one on the Page ...
Somebody please help ...
In fact, ApexPages.getMessages().clear(); should clear all the messages in the collection. If you can share the code, it will help to see how you implemented that in your code, which helps in resolving the issue .
Thanks,
Balaji