viritin validation

Viritin works with annotation??

I put in my bean,

@NotNull @Size(min = 2)
private String nome;

and use this code to bind:

bind = BeanBinder.bind(novaFicha, this);
bind.bind(nome,"parte.nome");

(because my parte are one embedded object in Ficha.

So when I try to save my ficha, and I run

bind.isValid()

If i only input A in my nome the bind return valid and not invalid(because the size), and with viritin it`s possible to show the message in textedit when I leave field and the value are incorrect

tks

Have you annotate parte field of the main class with @Valid?

Sorry man… I miss this :frowning:

Works…tks