You need to sign in to do that
Don't have an account?
SkyBlue2007
How to insert line with addMessage Method.
Hi everyone,
I'd like to insert line with addMessage Method.
For example, the below code doesn't work.
ApexPages.addMessage(new ApexPages.Message( ApexPages.severity.ERROR,'aaa','bbb <br/> ccc'))
Please let me know if you have best practice.
Thanks,
Seiji
I think that '\n' works... although if you are using the apex messages component it won't actually show the carriage return, it will show as a space.
Hi,
Thank you for your reply.
You're right, '\n' shows the carriage return because I'm using the 'apex:pageMessages'.
Thanks,
Seiji