Select

it is possible to bind an atribute of a sub class in a form? let’s say i have an appointment class and a person class inside appointment, and in the form for creating an appointment i want to bind textfields into attributes of the person class

Yes, something like

var nameField = new TextField("Name");
binder.forField(nameField)
    .bind(
        app -> app.getPerson().getName(),
        (app, value) -> app.getPerson().setName(value)
     );

Ok, I’ll try out, thanks

hello, in this case, what represents value?

the value of the textfield?

Correct

The first one tells binder how to read the value into the field and the second one tells it how to write the field value back