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"?>

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
  1. 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