jouni / ToolbarWindow

ToolbarWindow add-on for Vaadin. Allows placing of any Vaadin components in the sub-window header area.
http://vaadin.com/addon/toolbarwindow
2 stars 0 forks source link

Missing WidgetSet ? #3

Open ahoehma opened 13 years ago

ahoehma commented 13 years ago

Widgetset does not contain implementation for org.vaadin.cssinject.CSSInject. 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 ...

I added the following dependencies to my pom.xml:

org.vaadin.addons toolbarwindow 0.1
<dependency>
  <groupId>org.vaadin.addons</groupId>
  <artifactId>cssinject</artifactId>
  <version>0.12</version>
  <scope>runtime</scope>
</dependency>

class MyWindow extends ToolbarWindow { ... }

Any ideas?

jouni commented 13 years ago

Hi,

The ToobarWindow depends on the CSSInject add-on, which requires you to compile the widgetset. That's why you're seeing the message.

uetanabaro commented 13 years ago

I got same erro but do not understand why need compile? All others comps i just add in POM.xml and works fine.

jouni commented 13 years ago

Maybe none of the other add-on components that you use have any additional client side code in them, and because of that require no compilation?

But as I stated earlier, ToolbarWindow depends on the CSSInject add-on which contains client side (GWT) code, and because of that requires the widgetset compilation.

uetanabaro commented 13 years ago

Sorry... now i got the point....

uetanabaro commented 13 years ago

Im compiling CSSInject but i got dependency compiler error (WeeLayout). Do i need recompile all projects dependencies too?

jouni commented 13 years ago

That sounds strange. At least ToolbarWindow should not have a dependency to WeeLayout. Check your *.gwt.xml and see if it contains the WeeLayout widget set reference.

Are you using WeeLayout in your application?

uetanabaro commented 13 years ago

The problem is using maven with dependency:

    <dependency>
        <groupId>org.vaadin.addons</groupId>
        <artifactId>toolbarwindow</artifactId>
        <version>0.1</version>
    </dependency>

This f*\ widgetset Cssinject_addonWidgetset.gwt.xml putting these lines:

<inherits name="com.vaadin.addon.toolbar.widgetset.ToolbarWidgetset" />
<inherits name="org.vaadin.peter.contextmenu.ContextmenuWidgetset" />

I remove from POM and remove lines above and compile done but i can't enable POM lines to use ToolbarWindow.

jouni commented 13 years ago

Even stranger. I must admit I'm not very familiar with Maven, so can't comment on the intricacies of it.

But as you see from the CSSInject widget set definition, it does not depend on any other widget sets than the default Vaadin one: https://github.com/jounikoivuviita/CSSInject/blob/master/src/org/vaadin/cssinject/Cssinject_addonWidgetset.gwt.xml