簡體   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