简体   繁体   English

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

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

I am trying to create a chart with invient charts in vaadin. 我正在尝试在vaadin中创建带有初始图表的图表。 I added relevant jars and create another application servlet which points to jquery highchart and modules files and modified the web.xml file. 我添加了相关的jar并创建了另一个应用程序servlet,它指向jquery highchart和modules文件,并修改了web.xml文件。 When I add my pie chart code; 当我添加饼图代码时; I get the following from the browser ; 我从浏览器中得到以下内容;

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

and when I press compile vaadin widgets button, I get; 当我按下“编译vaadin小部件”按钮时,我得到了;

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

What seems to be a problem here? 这里似乎有什么问题? In my other projects this widgetset.gwt.xml is created by eclipse. 在我的其他项目中,这个widgetset.gwt.xml是由eclipse创建的。

Since I am a vaadin-invient charts newbie I don't what to put here such as logs etc., so if you let me know I will provide these information. 由于我是新手,所以我不会在这里放置日志等内容,因此,如果您让我知道,我将提供这些信息。

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

Just to clarify you answer: 只是为了澄清您的答案:

and when I press compile vaadin widgets button, I get: 当我按下“编译vaadin小部件”按钮时,我得到:

select a widgetset file(..widgetset.gwt.xml) or a vaadin project to compile. 选择一个小部件集文件(..widgetset.gwt.xml)或一个vaadin项目进行编译。

I think this is because you had multiple .gtw.xml file in your application and the vaadin plugin couldn't know which was your default wigetset. 我认为这是因为您的应用程序中有多个.gtw.xml文件,而vaadin插件无法知道哪个是默认的wigetset。 You need to manually select the default widgetset (that is in .widgetset package) and press the button again. 您需要手动选择默认的窗口小部件集(位于.widgetset包中),然后再次按按钮。

If in your application you don't have any other .gwt.xml file then, the procedure to add a new plugin to the application is well described here https://vaadin.com/directory/help/using-vaadin-add-ons 如果在您的应用程序中没有其他.gwt.xml文件,则在此处很好地描述了向该应用程序添加新插件的过程https://vaadin.com/directory/help/using-vaadin-add-开

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

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