Hi,I am using Vaadin24 along with Spring. When I attempt to add

Hi,

I am using Vaadin24 along with Spring. When I attempt to add a chip-field using this code.

		ChipField<String> chf = new ChipField<>("hello There");
		chf.setWidth("90%");
		chf.setAvailableItems(Arrays.asList("Tapestry Member", "Linked Account"));
		chf.addSelectedItem("Tapestry Member");
		chf.addSelectedItem("Linked Account");
		chf.setThemeName("styled-demo");
		this.add( chf );

The component is not shown - I do see the element in the DOM.

I also see the following errors in the browser console:

Any thoughts as to what might be happening?


Hello, sorry for the delay. If you're using Spring, please try updating the vaadin.whitelisted-packages property in your application.properties file to include com.flowingcode. It would look something like this:

vaadin.whitelisted-packages = com.vaadin,org.vaadin,dev.hilla,com.example.application,com.flowingcode

You can find more information about Vaadin & Spring properties here.

Hope this helps. Let me know how it goes.

Regards.