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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin8/Binder question
Hi,
I've been playing around with the Binder for updating fields in a POJO but how would you bind to a simple String like
String s = ...
ComboBox<String> ss = ...
Binder<String> b = new Binder<>(String.class);
b.forField(ss).bind(String::whatgoeshere, String::whatgoeshere);
b.setBean(s);
Sorry if it's a general functional interface question...
I know it is not a good netiquette to answer a question with a question but why do you want to bind to a String? I don't know if it is even possible as String is immutable (and is definitely no Java Bean). And why bind to it? You can get the String with comboBox.getValue().
Yep, I know about the string immutability and I know I could read the value from the component or use VCL:s to update the String etc, I was just curious in general if you could use the same semantics for all binding...