Search code examples
comboboxvaadin8

What is the alternative for Vaadin 8 ComboBox removeAllItems?


I want to remove all the values from combobox in vaadin 8 but removeAllItems is not present in the vaadin 8 api.

What is the alternative for it?


Solution

  • If nothing else works you can always "populate" combobox with an empty list.

    comboBox.setItems(new ArrayList<YourBean>());