2013-07-14 21 views
0

我在vaadin 6上開發。我想使用vaadin圖表添加。Unrendered UIDL

我已經在web-inf - > lib中包含所有的.jar文件,並且通過vaadin插件爲eclipse編譯widget。但這是輸出。

Widgetset does not contain implementation for com.vaadin.addon.charts.Chart. 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.vaadin.addon.charts.Chart(NO CLIENT IMPLEMENTATION FOUND) id=PID10 height=300px width=400px confState={ "chart": { "type": "bar" }, "title": { "text": "Planets" }, "subtitle": { "text": "The bigger they are the harder they pull" }, "xAxis": { "categories": [ "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune" ], "title": { "text": "Planet" }, "axisIndex": 0 }, "yAxis": { "labels": { "step": 2, "_fn_formatter": "function() {return Math.floor(this.value/1000) + \u0027Mm\u0027;}" }, "title": { "text": "Diameter" }, "axisIndex": 0 }, "legend": { "enabled": false }, "series": [ { "data": [ 4900, 12100, 12800, 6800, 143000, 125000, 51100, 49500 ], "name": "Diameter", "visible": true } ], "exporting": { "enabled": false } } 

我在做什麼錯了?

克里斯:d

回答

0

您需要指定新的視窗元件(由編譯器內置)使用。

也許你忘了指定它在你的web.xml

https://vaadin.com/book/vaadin6/-/page/addons.compiling.html

+0

好我在web.xml中寫道:' \t \t \t 應用視窗元件 \t \t \t​​widgetset \t \t \t com.example.test.TestA應用 \t \t'但是如果我編譯,這是例外:無法加載widgetset:'/Test/VAADIN/widgetsets/com.example.test.TestApplication/com.example.test。 TestApplication.nocache.js?1373817955849' – user1895683

相關問題