Greetings,
I’m trying to figure out how to stop validation of empty/new beans when using a BeanFieldGroup and I’m at a loss. The use case is really simple:
BeanFieldGroup fieldGroup = new BeanFieldGroup<>(Person.class);
//add a new Person to the database
fieldGroup.setItemDataSource(new Person());
When the screen renders, all the required fields are marked as invalid. I don’t want to show users this until they’ve actually attempted to commit and invalid value.
Does anyone have a solution to this problem?