Trying to use HorizontalSplitPanel

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 thought it may have something to do with this


http://vaadin.com/forum/-/message_boards/message/309452

But I am using the default HorizontalSplitPanel nothing special. It also happens on VerticalSplitPanel.

Does anyone have any ideas?
Thanks
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.

here is my web.xml.

		<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<display-name>pdfviewer</display-name>
	<context-param>
		<description>
		Vaadin production mode</description>
		<param-name>productionMode</param-name>
		<param-value>false</param-value>
	</context-param>
	<servlet>
		<servlet-name>Pdfviewer Application</servlet-name>
		<servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
		<init-param>
			<description>
			Vaadin application class to start</description>
			<param-name>application</param-name>
			<param-value>com.gdlp.application.pdfviewer.PdfviewerApplication</param-value>
		</init-param>
		<init-param>
			<description>
			Application widgetset</description>
			<param-name>widgetset</param-name>
			<param-value>com.gdlp.application.pdfviewer.widgetset.PdfviewerWidgetset</param-value>
		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>Pdfviewer Application</servlet-name>
		<url-pattern>/PdfviewerApplicationServlet/*</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>Pdfviewer Application</servlet-name>
		<url-pattern>/VAADIN/*</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>
</web-app>

here is my portlet.xml

<?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

		<init-param>
			<description>
			Application widgetset</description>
			<param-name>widgetset</param-name>
			<param-value>com.gdlp.application.pdfviewer.widgetset.PdfviewerWidgetset</param-value>
		</init-param>

out of the web.xml? I mean, I am not using any custom widgets? just the horizontalsplitpanel.

Thanks
matt