You can post
<h:panelGroup id="my_custom_error_msg">
<h:outputText value="Please fix all problem in form"
rendered="#{facesContext.validationFailed}"/>
</h:panelGroup>
And draw it when submitting the form, for example:
<h:commandButton value="Submit">
<f:ajax render="@form my_custom_error_msg" execute="@form"/>
</h:commandButton>
, bean , rendered
rendered="#{facesContext.validationFailed or not empty facesContext.messageList}"