Hi! Since version 14.1.16 of vaadin I get error “java.lang.IllegalArgumentException: HTML must contain exactly one top level element (ignoring text nodes). Found 4 elements with the tag names title, meta, style, table’”. Everything worked on a vaadin version <=14.1.5. How to solve this problem?
You seem to use Html component. It needs to be used as follows
Html html = new Html("<div><b>Bold</b> <i>Italic</i></div>");
Note the encapsulation in div element, you can also use span.
It seems to be a breaking change in Vaadin. Fixed in the latest add-on version.
Thanks, it works!