Hi, without any problem I can bind object fields which are directly available (as field) in the object I am referring to. Well at least this is done
autmatically.
class Person {
String name;
String surname;
}
the binding via new BeanValidationBinder<>(Person.class) works great.
What if:
class Person {
String name;
String surname;
Address address;
}
Now I what the binding to the text field on an attribute from Address. Text field id is street, so I tried (Address:getStreet, Address:setStreet) but this results in an error: java.lang.IllegalStateException: Property street ‘com.example.myapplication.samples.backend.data.Address’ doesn’t match the field type ‘java.lang.String’. Binding should be configured manually using converter
So my question is: how to I bind attributes from Person to my text field?