Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
vaadin pie chart not rendered in browser
I am trying to incorporate vaadin chart in my web application which is based on spring-boot and vaadin UI. I have saved the trial license in the path C:\Users\myuser\vaadin.charts.developer.license file. I have inlcuded the vaadin-maven-plugin in my pom.xml with following goals
But when I run the spring-boot app, I get a message and the chart is not rendered. I have attached my pom.xml and the error message. Please help. Thanks.
Did you compile the widgetset? If you tried to compile it, did you get errors indicating that something is wrong with setup?
Tatu Lund: Did you compile the widgetset? If you tried to compile it, did you get errors indicating that something is wrong with setup?
I did get warning when doing a mvn install, but no errors. Attached is the maven console log.
My DashboardWidgetSet.gwt.xml looks like below: is there something needs to be added/deleted ?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name="com.vaadin.addon.charts.Widgetset" />
If you are using vaadin before 7.7 have you specified the widgetset using @Widgetset annotation on your UI class or
@VaadinServletConfiguration(widgetset="...") on your vaadin servlet?
You got it. Not having the @Widgetset annotation on my UI class was the problem. Now the pie chart is rendering. Thanks a lot.
Glad I could help :)