Bom noite eu estou com segunite problemas quando peço para rodar minha aplicação web
javax.validation.UnexpectedTypeException: No validator could be found for type: java.lang.Integer
Eu tenho o seguinte mapeamento
@Entity
@Table(name = "pessoa")
public class Pessoa extends PersistentModel implements Serializable {
private static final long serialVersionUID = 1L;
@NotEmpty
@Column(name = "matriculaPM", length = 20)
private String matriculaPM;
@NotEmpty
@Column(name = "siape", length = 20)
private String siape;
@NotEmpty
@Column(name = "nome", length = 60)
private String nome;
@Column(name = "pispasep", length = 20)
private String pisPasep;
@Column(length = 20)
private String titulo;
@Column(length = 10)
private String secao;
@Column(length = 6)
private String zona;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pessoa")
private List<Telefone> telefones;
@NotEmpty
@Column(length = 4)
private Integer altura;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pessoa")
private List<Escolaridade> escolaridades;
@Temporal(TemporalType.DATE)
private Date dataCadastro;
private Boolean statusCadastro = true;
@Enumerated(EnumType.STRING)
private Religiao religiao;
@Temporal(TemporalType.DATE)
private Date dataIncorporacao;
private SituacaoFuncional situacaoFuncional;
Para a minha view eu estou usando o primefaces…
<h:outputLabel value="Data de Nascimento:*" for="nascimento" />
<p:inputText id="nascimento" label="nascimento"
value="#{pessoaController.pessoaCorrente.dataNascimento}"
size="30" maxlength="30" required="true"
requiredMessage="Data de nascimento obrigatória">
</p:inputText>
Grato a quem puder ajudar
