Similar to <p:messages> , PrimeFaces has a <p:message> component that can be
used as a drop-in replacement for the standard JSF <h:message> component (not
shown in the example). Just like <h:message> , <p:message> should be used when
we wish to show validation errors next to the field whose value did not validate, as
opposed to showing the message at the top of the page.