não aparece a msg de validação para os campos abaixo: Número de Páginas Preço
testei incluindo o ValidationMessages.properties no faces-config e nada...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:form>
<!-- <h:messages /> -->
<div>
<h:outputLabel value="Título" />
<h:inputText value="#{adminLivrosBean.livro.titulo}" required="true"
id="titulo" />
<h:message for="titulo" />
</div>
<div>
<h:outputLabel value="Descrição" />
<h:inputTextarea rows="4" cols="20"
value="#{adminLivrosBean.livro.descricao}" required="true"
id="descricao" />
<h:message for="descricao" />
</div>
<div>
<h:outputLabel value="Número de Páginas" />
<h:inputText value="#{adminLivrosBean.livro.numeroPaginas}"
required="true"
id="numPag">
<!-- <f:validateLongRange minimum="80" />-->
<h:message for="numPag" />
</h:inputText>
</div>
<div>
<h:outputLabel value="Preço" />
<h:inputText value="#{adminLivrosBean.livro.preco}" required="true"
id="preco">
<!-- <f:validateDoubleRange minimum="20" maximum="150" /> -->
<h:message for="preco" />
</h:inputText>
</div>
<div>
<h:outputLabel value="Autores" />
<h:selectManyListbox value="#{adminLivrosBean.autoresId}"
converter="javax.faces.Integer" required="true" id="autores">
<f:selectItems value="#{adminLivrosBean.autores}" var="autor"
itemValue="#{autor.id}" itemLabel="#{autor.nome}" />
<h:message for="autores" />
</h:selectManyListbox>
</div>
<h:commandButton value="Cadastrar" action="#{adminLivrosBean.salvar}" />
</h:form>
</html>