Hi.
I had a question.that is if you use “form.setBuffered(true);”,you can’t validate like this:
field.addValidator(new Validator() {
@Override
public void validate(Object o) throws InvalidValueException {
//FIXME There is the problem.if i set
“form.setBuffered(true);”
,I can’t get latest testBean.
if (testBean.getId().equals(testBean.getName())) {
throw new Validator.InvalidValueException(“id can’t equals name.”);
}
}
});
There is the code:
https://github.com/dyguests/MultiItemValidateDemo/blob/master/src/com/fanhl/vaadin/MainUI.java#L74~L77
so,an way could fix it?
sorry for my poor english.