You need to sign in to do that
Don't have an account?
JeffStevens
Custom messages
I keep getting this error...
Content cannot be displayed: Not Serializable: ApexPages.Message
I have This in my controller extension...
public ApexPages.Messagemsg{get;set;}
...
msg = new ApexPages.Message(ApexPages.Severity.WARNING, 'Must have a Re-Formatted file first...');
ApexPages.addMessage(msg);
And I have this in my markup...
<apex:Messages />
Do I have to create a custom exception message? Or is there another way to display a custom error message?
Thanks
Don't use a member variable that will serialize a message. It won't work. Just change your code thusly:
If you don't like constructing parameters directly, you can do this as well:
All Answers
Don't use a member variable that will serialize a message. It won't work. Just change your code thusly:
If you don't like constructing parameters directly, you can do this as well:
Wow - that was it!
I sure chased my tail around on that one for quite awhile.
Thanks so much!