Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin Binder.bindInstanceFields(this);
Hi im using Vaadin 8.0.1
I am trying to validate my which contains some form fields
as follows
void form(VerticalLayout pPartyLayout) {
class MyForm extends CustomComponent {
private static final long serialVersionUID = 1L;
TextField name = new TextField();
TextField mDesc = new TextField();
DateField mDateField = new DateField();
ComboBox<PersonData> mComboBox = new ComboBox<>();
ComboBox<String> mStrComboBox = new ComboBox<>();
public MyForm() {
And i m using Binder for validating it its not validating .
Binder<PersonData> binder = new Binder<>(PersonData.class);
binder.bindInstanceFields(this);
binder.setStatusLabel(emailStatus);
i dont want to write validation for each and every fields
How can i use binder.bindInstanceFields(this); in proper way
i am not getting any sample of using it.
Thanks
Nagaraj RC
What kind of validation do you want to do? The framework cannot guess them :P so you must provide either, validations with reference methods, lambdas or classes (through the Binder::withValidator method); or use the annotations available in the Bean Validation API. You can find documentation with examples in the following links:
https://vaadin.com/docs/-/part/framework/datamodel/datamodel-forms.html#datamodel.forms.beans