Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: binder record limitations; mention records as items #3865

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions articles/flow/binding-data/components-binder-load.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,10 @@ For writing a record, the `writeRecord` method should be used. Calling this meth
Person editedPerson = binder.writeRecord();
----

=== Limitations

Custom methods which return computed values but do not have a corresponding property in the record are not handled by the Binder, but their value can still be bound manually if needed.

For Binder to be able to write a record, it is required to have a field binding for all properties of the record.

[discussion-id]`33EBA0BC-10B8-4DB4-922C-71AA8B0A446C`
2 changes: 1 addition & 1 deletion articles/flow/binding-data/data-provider.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ grid.setItems(
);
----

All listing components in Vaadin have many overloaded [methodname]`setItems()` methods to define the items to display. Items can be basic objects (e.g., strings or numbers), or they can be plain-old Java objects (POJO), such as Data Transfer Objects (DTO) and JPA entities.
All listing components in Vaadin have many overloaded [methodname]`setItems()` methods to define the items to display. Items can be basic objects (e.g., strings or numbers), Java Records, or plain-old Java objects (POJO), such as Data Transfer Objects (DTO) and JPA entities.

The easiest way to bind items to a component is to provide a [classname]`List` of objects to be shown in the component.

Expand Down
Loading