Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vaadin 7: Widgetset does not contain implementation

Tags:

vaadin

I am trying my hands on vaadin and would like to use gantt chat add-on in my vaading 7 project. https://vaadin.com/directory#addon/vaadin-gantt-diagram:vaadin

since this is not compatible with vaadin 7, I am trying to fix some code from the add-on to make it compatible with vaadin 7.

I checked out source code of vaadin-6.8 from repository and vaadin-gantt (add-on) from available downloads.

I changed the code a bit in vaadin-6.8 and built. I am using this customized vaadin-6.8 jar inside vaadin-gantt add-on. Now I am able to build vaadin-gantt add-on by using customized vaadin-6.8 jar. I want to use this add-on inside vaadin-7 project.

compiling went through, but i am getting below message on console while displaying gantt chart

"Widgetset does not contain implementation for ru.bazon.vaadin.ganttdiagram.canvas.GanttDiagramCanvas. Check its component connector's @Connect 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."

I compiled the gantt widgetset using eclipse plugin and could see the below entry in my projects *.gwt.xml file

I would like to make use of gannt chart add-on for vaadin-7. I didn't find any other add-on for vaadin-7 apart from this which is not compatible with vaadin 7.

any pointers?

Regards, Azhar

like image 462
Azhar Avatar asked May 28 '13 05:05

Azhar


3 Answers

Please make sure You have added @Widgetset("path of *.gwt.xml") on your main UI class.I have solved by adding this

like image 84
Manish Prajapati Avatar answered Jan 31 '23 04:01

Manish Prajapati


I just had this error as well and it was caused by missing source files in the addon jar. Both .java and .class files must be present in the addon jar file as GWT compiles from sources. But most likely the addons form vaadin directory should include also the sources. And ofcourse don't forget to compile the widgetset and themes after importing your addon to your project.

like image 23
Bogdan Avatar answered Jan 31 '23 05:01

Bogdan


Just leaving this here in case someone has the same case as I had. Our project is in Vaadin 8, and we already had @Widgetset("com.company.OurWidgetSet") as annotation on our UI-extending class.

However, I still received the same error as OP when accessing a pop-up of a separated component. Although we did try to migrate this component of ours to Vaadin 8 in the past, due to lack of time to do this properly, it was still mostly using Vaadin7 imports and functionality.

Because of this I had to add the following to our OurWidgetSet.gwt.xml file (within the <module>-tag) in our main project, to fix the functionality of the used component:

<inherits name="com.vaadin.v7.Vaadin7WidgetSet" />
like image 39
Kevin Cruijssen Avatar answered Jan 31 '23 04:01

Kevin Cruijssen