TEnho o formulario abaixo , quero criar uma mensagem do nome ser obrigatorio, exemplo se tiver em branco, aparecer a mensagem **CAMPO NOME OBRIGATORIO
segue o codigo
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>eTest</title>
</h:head>
<h:body>
<p:growl id="avisos" showDetail="true" life="3000"/>
<p:fieldset legend="Meu Cadastro" toggleable="true">
<h:form>
<p:messages/>
<h1 align="center">HOME PAGE</h1>
<h:panelGrid columns="2">
<h:outputLabel value="Nome"/>
<p:inputText id="nome" value="#{BeanCliente.cliente.nome}" />
<h:outputLabel value="Observações"/>
<p:inputTextarea value="#{BeanCliente.cliente.observacao}"/>
<h:outputLabel value="Data Cadastro"/>
<p:calendar value="#{BeanCliente.cliente.datacadastro}"/>
<h:outputLabel value="Telefone:"/>
<p:inputMask mask="(999)9999-9999" value="#{BeanCliente.cliente.telefone}"/>
<h:outputLabel value="Cpf:"/>
<p:inputMask mask="999.999.999-99" value="#{BeanCliente.cliente.CPF}"/>
<h:outputLabel value="Descrição:"/>
<p:keyboard layout="qwertyBasic" value="#{BeanCliente.cliente.descricao}"/>
<h:outputLabel value="Senha:"/>
<p:keyboard password="true" keypadOnly="true" value="#{BeanCliente.cliente.senha}"/>
<p:commandButton id="Salvar" value="Salvar" action="#{BeanCliente.Salvar}">
</p:commandButton>
</h:panelGrid>
</h:form>
</p:fieldset>
</h:body>
</html>