When loading the date in a calendar (PrimeFaces) it loads normally:
Code:
<p:outputLabel value="Data de Nascimento" for="data-nascimento" />
<p:calendar id="data-nascimento" locale="pt" mask="99/99/9999"
value="#{solicitacaoRHBean.itemEdicao.dataNascimento}"
required="true" navigator="true"
requiredMessage="Data de Nascimento é obrigatório">
</p:calendar>
But at the moment of validating / persisting the information gives an error message saying that the date is not a valid date.
How to resolve this issue?