Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Immutable bean with Binder<>

Rubén Espinoza
3 years ago Nov 13, 2019 4:13pm
Olli Tietäväinen
3 years ago Nov 14, 2019 6:56am

You can use a Lambda expression for both the ValueProvider and Setter implementations. So you can have something like

.bind(bean -> bean.getValue(), (bean, value) -> { /* do nothing */ });

to not write anything when the setter is called.

Rubén Espinoza
3 years ago Nov 14, 2019 1:22pm