I’m wondering whether I’m doing something wrong, or I just haven’t figured out something, but how do I get OOPHM to recognize my custom widget with Vaadin 6.2?
First I tried to actually compile the widgetset with the plugin. This makes the component to work normally, but not with OOPHM. I even tried to extend WidgetMap and just return a few components, but GWT ignored my own component:
00:04:54.393 [INFO]
Widget set will contain implementations for following components: [class com.vaadin.ui.Window, class com.vaadin.ui.CssLayout]
The only thing I get from the OOPHM console window is the friendly error warning that it knows something is being called that isn’t included in the widgetset:
00:04:54.391 [WARN]
Widget implementation for com.vaadin.incubator.drawer.Drawer not available for GWT compiler (but mapped for component found in classpath). If this is not intentional, check your gwt module definition file.
I don’t know what to try next. I get a feeling that I would want to find the hidden wiki-page mentioned in ticket
http://dev.vaadin.com/ticket/3575 .
You just need to add gwt-dev-oophm.jar and gwt-user.jar (OOPHM version) to your project classpath (place them first in the list), and you should be all set. The GWT Compiler will then use those libraries instead of the ones downloaded by the plugin.
I already had them. OOPHM itself seems to work correctly, because instead of my component, I get the standard “Client faced an unknown component type.” and the VUnknownComponent placeholder.
Also, as mentioned earlier, if I remove GWT’s OOPHM parameters from the URI, I see the “It works!” default text from the previously traditionally compiled widgetset.
I ran into problems with the widget map generator. It looks like it requires the [tt]
build/classes
[/tt] directory to work. I succeeded by having the following classpath in the OOPHM launch configuration settings: