0

我在 vaadin 6 上开发。我想使用 vaadin 图表插件。

我已经在 web-inf -> lib 中包含了所有 .jar 文件,并编译了 vaadin 插件为 eclipse 设置的小部件。但这是输出。

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

4

1 回答 1

0

您需要指定要使用的新小部件集(由编译器构建)。

可能您忘记在 web.xml 中指定它

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

于 2013-07-14T11:32:17.587 回答