Disabling validation of new items

Hi,
I’m wondering if its possible to disable validation on a BeanFieldGroup until commit is called? When I call setItemDataSource(new Bean()), the fields are automatically marked as invalid. This isn’t really what I want the user to see. I really only want to run the validations either when the field is committed by a user, or the whole FieldGroup is committed.

Is this possible? Am I missing something obvious?

Hi,
have you figured out how to do it?

Though the following thread is for Vaadin 6.x, it should answer the question

https://vaadin.com/forum#!/thread/265469

Unfortunately I could not find any replacement for the Form’s method setValidationVisibleOnCommit() in Vaadin 7. Instead AbstractField#setValidationVisible(false) should help in your case.

Yeah, thats the same I came with in the end - iterate over all components and hide validation for all the fields.

Have exactly the same problem. Could you please describe your solution a little more?. Disable the validation state is ok to hide the error when a new item is added but when do you activate validation again?.