p: growl of primefaces is showing twice the CPF name

1

My p: growl of primefaces is showing twice the CPF name when cpf is invalid. I'm using bean validation.

<p:outputLabelfor="cpf" value="CPF"  rendered="#{cadastroClienteBean.CPF}"/>
                    <p:inputMask id="cpf" label="CPF" mask="999.999.999-99"  placeholder="___.___.___-__"
                                 value="#{cadastroClienteBean.cliente.documentoReceitaFedral}" size="14"
                                 rendered="#{cadastroClienteBean.CPF}" required="true" 
                                 requiredMessage="CPF deve ser informado">
                    </p:inputMask>





@CPF
@Column(name = "doc_receita_federal", length = 14)
public String getDocumentoReceitaFedral() {
    return documentoReceitaFedral;
}
    
asked by anonymous 05.09.2016 / 15:35

1 answer

2

There are several ways to solve. One of them and edit the CPF validator message @CPF (message="Invalid CPF")

    
09.09.2016 / 15:26