Vaadin 14 | Combobox | Default value

Hi Experts,

I am new to Vaadin so I have downloaded the examples of Vaadin and started working into this. In the combo box example program (shared at → Storing custom values) I want to know is there a way to set a default item/value in combo box based on a field value of project class. Let’s assume project class has one more field

boolean default = true.

Only one project instance will have default = true. I want to set this project instance’s description as default value in combo box. Please guide me how to do this.
Appreciate your help on this topic.


You can use combobox.setValue(something) to set the initial value of a ComboBox.