Get form values to object

Hi,
I have a form with 20 textfield, combobox, textarea and I want to retrieve automaticaly values to a object.
I don’t want to make String value1 = textfield.getValue(); String value2=combobox.getValue();
I want to retrieve all the value to a UserDto object for example.
Thanks,

Hi Younes,

You just need to call the methode binder.writeBean(), for example

UserDto userDto = new UserDto();
binder.writeBean(userDto);

Thanks;
it works