In my JSF 2.0 application, whenever validation fails, I display a message to the user with <h:message> tag. I always get one extra message at the top of the page along with the expected one. How can I get rid of this?
In my JSF 2.0 application, whenever validation fails, I display a message to the
Share
Apparently you’re using a
<h:messages>in the top of the page. If you set it to display global messages only (those with anullclient ID, as incontext.addMessage(null, message)), then the client-specific message won’t be duplicated over there.