我正在尝试在vaadin中创建带有初始图表的图表。我添加了相关的jar并创建了另一个应用程序servlet,它指向jquery highchart和modules文件,并修改了web.xml文件。当我添加饼图代码时;我从浏览器中得到以下内容;

Widgetset does not contain implementation for com.invient.vaadin.charts.InvientCharts. Check its @ClientWidget mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions. Unrendered UIDL:-Unrendered UIDL-com.invient.vaadin.charts.InvientCharts(NO CLIENT IMPLEMENTATION FOUND) id=PID5 height=400px width=100.0% isRetrieveSVG=false isPrint=false reloadChartSeries=false-options-title text=Distribution of positive negative tweets-subtitle-credit-position-legend-tooltip-chart type=pie zoomType= clientZoom=true-seriesOptionsPerSeriesType-pie allowPointSelect=true cursor=pointer showInLegend=true-dataLabel enabled=false-state-xAxes-yAxes-labels-chartData-series name=Status xAxis=0 yAxis=0-pie-points-point name=Positive x=0 y=10 isShift=false-point name=Negative x=1 y=20 isShift=false-events-chartEvents-seriesEvents-series-pointEvents-line-pointEvents-spline-pointEvents-scatter-pointEvents-area-pointEvents-areaspline-pointEvents-bar-pointEvents-column-pointEvents-pie-pointEvents-chartDataUpdates-seriesDataUpdate seriesName=Status operation=Add isReloadPoints=false-pointsAdded-pointsRemoved

当我按下“编译vaadin小部件”按钮时,我得到了;

select a widgetset file(..widgetset.gwt.xml) or a vaadin project to compile.

这里似乎有什么问题?在我的其他项目中,这个widgetset.gwt.xml是由eclipse创建的。

由于我是新手,所以我不会在这里放置日志等内容,因此,如果您让我知道,我将提供这些信息。

最佳答案

为了解决此问题,我手动将gwt.xml文件添加到项目中,并将其他项目的gwt.xml内容复制到新创建的gwt.xml中,然后在项目的Web中添加对新创建的gwt.xml的引用.xml文件。

09-07 20:01