Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin+Spring-boot adding 3rd party ui component
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"?>
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name='org.vectomatic.libgwtsvg' />
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:
3. Yes, this should be sufficient.
Remember: You'll also have to compile the widgetset before it can be used.
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.