I downloaded a copy of the vaadin-chart-video sample project from GitHub ( https://github.com/vaadin-miki/vaadin-charts-video ) to understand how Vaadin's charts should be implemented . However, this project and most of the available demo codes / projects that I found seem to be written using Vaadin 7 and previous coding conventions. I am jumping with Vaadin 8.0.5 (and JDK8) ...
These errors appear when you start Maven:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project intro-video: Compilation failure: Compilation failure:
[ERROR] /C:/Users/dev/vaadin/vaadin-charts-video/intro-video/src/main/java/org/vaadin/miki/charts/intro/IntroChartsUI.java:[19,28] cannot find symbol
[ERROR] symbol: class BeanItemContainer
[ERROR] location: package com.vaadin.data.util
[ERROR] /C:/Users/dev/vaadin/vaadin-charts-video/intro-video/src/main/java/org/vaadin/miki/charts/intro/IntroChartsUI.java:[54,17] cannot find symbol
[ERROR] symbol: class BeanItemContainer
[ERROR] location: class org.vaadin.miki.charts.intro.IntroChartsUI
[ERROR] /C:/Users/dev/vaadin/vaadin-charts-video/intro-video/src/main/java/org/vaadin/miki/charts/intro/IntroChartsUI.java:[54,62] cannot find symbol
[ERROR] symbol: class BeanItemContainer
[ERROR] location: class org.vaadin.miki.charts.intro.IntroChartsUI
Can someone tell me BeanItemContainer has been replaced? And if so, with what?
For example, see line 54 https://github.com/vaadin-miki/vaadin-charts-video/blob/master/intro-video/src/main/java/org/vaadin/miki/charts/intro/IntroChartsUI. java
BeanItemContainer<BookPrice> container = new BeanItemContainer<>(BookPrice.class, prices);
And if this is not a problem for more experienced eyes, please let me know what is ...
source
share