muhammadm Member since 2012 1 post
Posted: October 14, 2015
Last activity: February 5, 2016

How to remove property name prefix in error messages set using Property-Set-Messages

Hi All,

I have a requirement to show error message for a certain field at both Property level and Page level at top of page. To accomplish this I am using Property-Set-Messages. But when the message is displaying at the page level it is always accompanied by the Property Name followed by the error message. The client requirement is to display only the error text at the page level. It should not be prefixed with Property Name.

To show the error at the top of page I am using a Custom error Section which will be visible if hasMessages condition is true and picks the error message using <%=tools.getPrimaryPage().getMessagesAll()%> embedded inside a label within the section.

Could you kindly advise how to eliminate the Property name from being prefixed at the page level error.



User Interface
Moderation Team has archived post
Share this page LinkedIn