繁体   English   中英

widgetsets GWT模块描述文件并在vaadin中重新编译您的widgetset错误

[英]widgetsets GWT module description file and re-compile your widgetset error in vaadin

我正在尝试在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文件。

只是为了澄清您的答案:

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

选择一个小部件集文件(..widgetset.gwt.xml)或一个vaadin项目进行编译。

我认为这是因为您的应用程序中有多个.gtw.xml文件,而vaadin插件无法知道哪个是默认的wigetset。 您需要手动选择默认的窗口小部件集(位于.widgetset包中),然后再次按按钮。

如果在您的应用程序中没有其他.gwt.xml文件,则在此处很好地描述了向该应用程序添加新插件的过程https://vaadin.com/directory/help/using-vaadin-add-开

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM