Hello there, Exactly what I needed but maybe I'm missing something but I ke

Hello there,

Exactly what I needed but maybe I’m missing something but I keep geeting this exception:

java.lang.NoSuchMethodError: ‘void com.vaadin.flow.component.combobox.ComboBox.setItems(java.util.Collection)’

with this:

ChipComboBox chipComboBox = new ChipComboBox()
chipComboBox.setLabel(“label”);
chipComboBox.setPlaceholder(“Placeholder”);
chipComboBox.setValue(Arrays.asList(“asdf”, “asdf2”)); <— Here

I also tried with the setItems but I got the same error… Any ideas?
Thanks!

Hello Jimmy,

thanks for your question!

As you can see in the example at https://github.com/xdev-software/vaadin-chip-combobox/blob/develop/vaadin-chip-combobox-demo/src/main/java/software/xdev/vaadin/chips/SimpleDemo.java#L139

we are basically using the same methods.

What version of vaadin are you using? Our latest version (3.0.1) of the ChipComboBox only supports Vaadin 23+. If you are using Vaadin 14 you can

use version 2.2.3 of the ChipComboBox. (See Compatibility at https://github.com/xdev-software/vaadin-chip-combobox#compatibility-with-vaadin)

If this doesn't solve your problem, please feel free to open an issue at the GitHub repository at https://github.com/xdev-software/vaadin-chip-combobox/issues.

Best regards XDEV Software