I am pretty new to Vaadin but I have developed a few portlets we are using in production on liferay.
I am working on another one that I want to use HorizontalSplitPanel.
import com.vaadin.Application;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.Window;
public class PdfviewerApplication extends Application {
@Override
public void init() {
Window mainWindow = new Window("Application");
Panel panel = new Panel("Split Panels Inside This Panel");
HorizontalSplitPanel hsplit = new HorizontalSplitPanel();
panel.setContent(hsplit);
hsplit.setFirstComponent(new Label("first", Label.CONTENT_RAW));
hsplit.setSecondComponent(new Label("second", Label.CONTENT_RAW));
mainWindow.addComponent(panel);
setMainWindow(mainWindow);
}
}
Pretty simple, huh? Well, it doesn’t work I keep getting this:
Widgetset does not contain implementation for com.vaadin.ui.HorizontalSplitPanel. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL
What is my problem? I am on Vaadin 6.5.2 in Eclipse. Any help is appreciated,
matt
I am 99% sure this is caused by using an old version of the widgetset with a new Vaadin JAR. The post you linked to should have a link to how to update the widgetset and themes.
You can also add “?debug” (or &debug if there is already a question mark) to your URL and see if the debug window indicates a Vaadin-widgetset or Vaadin-theme version mismatch.
It is also possible that you have performed the upgrade steps but the old resources are still in a cache, either in the browser (unlikely) or in Liferay. You could test putting the developer settings that disable some caches to your portal-ext.properties in that case (the developer settings file is in the same directory in Liferay as portal-ext.properties).
Henri,
Thank you for your reply you have helped me so much on other projects with your responses to so many people, thank you!
I know it has to be something simple. I disabled all cache settings in liferay, but I still get the same error. i tried to follow the instructions for updating my widgetset but that didn’t seem to work.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>Pdfviewer Application portlet</portlet-name>
<display-name>pdfviewer</display-name>
<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet2</portlet-class>
<init-param>
<name>application</name>
<value>com.gdlp.application.pdfviewer.PdfviewerApplication</value>
</init-param>
<!--
To enable displaying multiple Vaadin portlets on a page,
they should all use the same widgetset. In that case, the
widgetset can be configured on the portal level (parameter
vaadin.widgetset) or here for each portlet.
-->
<!--
<init-param>
<name>widgetset</name>
<value>com.vaadin.portal.gwt.PortalDefaultWidgetSet</value>
</init-param>
-->
<!-- Supported portlet modes and content types. -->
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
<!-- <portlet-mode>edit</portlet-mode> -->
<!-- <portlet-mode>help</portlet-mode> -->
</supports>
<!-- Not always required but Liferay uses these. -->
<portlet-info>
<title>pdfviewer</title>
<short-title>pdfviewer</short-title>
</portlet-info>
</portlet>
</portlet-app>
In my previous projects I have never called the widgetset like in the web.xml and the portaldefaultwidgetset was commented out the same way.
How do you update the portaldefaultwidgetset? Can I remove