What is data binding?

preview_player
Показать описание
In this video, Alejandro Duarte explains the concept of data binding and shows how frameworks such as Vaadin Flow include utilities that make it easy to connect user interface components to domain objects.

0:00 Intro
0:36 Values in input fields / controls
2:21 Values in business objects
3:46 Manual data binding implementation
6:31 Data binding with Framework helpers (the Binder class)
7:58 Defining bindings
9:18 Connecting a bean to input controls, fields, or UI elements
12:00 Reviewing the key concepts
13:40 Outro

Links:
Рекомендации по теме
Комментарии
Автор

Can you write live codes and show us what you did?

mahmudhassan
Автор

Thanks for the video tutorial. I would like to see one addressing use of writeBean, readBean (there is also setBean and getBean) and different ways do validate. I got somehow confused when I did binder.validate() and later found out that binder.writeBean(..) also ran validation.

johnmoe
Автор

Thanks for the tutorial! What about a case if User bean had a List<Address> addresses, and there is a form with dynamically added address forms. I can not seem to bind its fields to the user object to save at once, is there a way to do that or should I be saving them one by one after user clicked save on the whole form? Any help is appreciated, thanks.

azizanovruzova