Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin+Spring-boot adding 3rd party ui component
Hi All,
I would like to use svg images with my Vaadin+Spring-boot application. There is an excellent tool for it named lib-gwt-svg
https://github.com/laaglu/lib-gwt-svg. I found a little documentation about the 3rd party lib install here:
https://vaadin.com/wiki/-/wiki/Main/Integrating+an+existing+GWT+widget, but it is for Vaadin itself instead of Vaadin+Spring-boot.
My questions are:
1. Where I need to copy the lib.jar file?
2. Where I need to place my widgetset.gwt.xml file?
3. Do my widgetset file contains only these lines:
<?xml version="1.0" encoding="UTF-8"?>
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name='org.vectomatic.libgwtsvg' />
</module>
thx
Zamek
Hi Zamek,
I'm not sure about 1. because I use maven and let the dependencies be managed automatically, but i guess you should place it in src/main/webapp/WEB-INF
2.: You can place your widgetset file anywhere in your classpath. I also added the following application parameters in application.properties file:
vaadin.servlet.params.widgetset=com.fumm.dots.widgetset.Dots
vaadin.servlet.widgetset=com.fumm.dots.widgetset.Dots
3. Yes, this should be sufficient.
Remember: You'll also have to compile the widgetset before it can be used.
Hi Samuel,
Unfortunately spring-boot doesn't use WEB-INF/lib for importing jars.
I found an example which is the spring-boot way to use externeal modules.
thx,
Zamek