Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Refresher

Henrik Paul
1 decade ago Oct 21, 2009 12:01pm
Henrik Paul
1 decade ago Oct 22, 2009 6:30am
Henrik Paul
1 decade ago Oct 22, 2009 6:14pm
Jean-François Lamy
1 decade ago Oct 23, 2009 3:00am

Thanks much for the pointers, but I had to do a bit more guesswork to get things working, because my application had no widgetset to begin with (as many people I suspect, I started with AddressBook and mutated it)

A ) The first thing to do is to edit web.xml to add a widget set named after your application

<servlet>
        <servlet-name>CompetitionApplication</servlet-name>
        <servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
        <init-param>
            <param-name>application</param-name>
            <param-value>org.concordiainternational.competition.ui.CompetitionApplication</param-value>
        </init-param>
        <init-param>
            <description>Application widgetset</description>
            <param-name>widgetset</param-name>
            <param-value>org.concordiainternational.competition.ui.CompetitionApplicationWidgetset</param-value>
        </init-param>
    </servlet>

B ) You need to create a .xml file next to the application's .java (in this case, CompetitionApplicationWidgetset.gwt.xml ). with the following content (adjust for the various widget sets you are including)

<module>
    <!-- Inherit super widgetset -->
    <inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" /> 
    <inherits name="com.vaadin.incubator.superimmediatetextfield.SuperimmediatetextfieldApplicationWidgetset" />
    <inherits name="com.vaadin.incubator.refresher.RefresherApplicationWidgetset" />
</module>

C ) Drop the various jars for the widgetsets in your WEB-INF/lib (I took the Refresher and SuperImmediateTextField jars)

D ) If you want to recompile your widget set, there is a vaadin logo in the toolbar after you install the plugin. In theory you should be able to click on your project and trigger a recompile, but for some reason, this has stopped working for me. What seems to work reliably is to click on the .gwt.xml file that defines the widgetset, and then click on the icon.

Henrik Paul
1 decade ago Oct 23, 2009 5:31am
Jouni Koivuviita
1 decade ago Oct 23, 2009 11:50am
Jean-François Lamy
1 decade ago Oct 23, 2009 6:53pm
Jouni Koivuviita
1 decade ago Oct 23, 2009 7:59pm
Henrik Paul
1 decade ago Oct 23, 2009 8:13pm
Jean-François Lamy
1 decade ago Oct 23, 2009 8:16pm
Jean-François Lamy
1 decade ago Oct 23, 2009 9:22pm
Henri Muurimaa
1 decade ago Dec 20, 2009 10:54pm
Brain Lt
1 decade ago Apr 21, 2010 11:47am
Henrik Paul
1 decade ago Apr 21, 2010 11:53am
Nagaraju Magati
1 decade ago Apr 29, 2010 7:24pm
Henrik Paul
1 decade ago Apr 30, 2010 5:16am
Arthur S
1 decade ago May 18, 2010 5:36pm
Arthur S
1 decade ago May 18, 2010 6:21pm
Arthur S
1 decade ago May 18, 2010 6:29pm
Joonas Lehtinen
1 decade ago May 18, 2010 6:30pm
Arthur S
1 decade ago May 18, 2010 7:40pm
Arthur S
1 decade ago May 18, 2010 8:36pm
Henrik Paul
1 decade ago May 19, 2010 6:24am
Arthur S
1 decade ago May 19, 2010 11:50am
Julio Vergara
1 decade ago Jun 22, 2010 5:10pm
Henrik Paul
1 decade ago Jun 23, 2010 5:31am
Teemu Pöntelin
1 decade ago Jun 23, 2010 6:10am

Hi Julio,

make sure you have done the following two things.

1) In a portal environment you must copy the compiled widgetset into the /html/VAADIN/widgetsets/ directory under the Liferay installation. See also this section of the Book of Vaadin about installing Vaadin to Liferay.

2) Make sure you have defined the widgetset to be used by your portlet application in the portlet.xml file or in the portal-ext.properties file.

Julio Vergara
1 decade ago Jun 24, 2010 12:06pm
Julio Vergara
1 decade ago Jun 24, 2010 1:26pm
Henrik Paul
1 decade ago Jun 28, 2010 5:39am
J Loke
1 decade ago Jul 15, 2010 6:04am
Henrik Paul
1 decade ago Jul 26, 2010 5:34am
Henri Muurimaa
1 decade ago Jul 28, 2010 1:11pm
Joseph george
1 decade ago Aug 05, 2010 9:51am
Joseph george
1 decade ago Aug 05, 2010 9:57am
Henri Sara
1 decade ago Aug 05, 2010 10:27am
Henrik Paul
1 decade ago Aug 05, 2010 10:28am
Jason Smith
1 decade ago Sep 14, 2010 11:56pm
selios papanas
1 decade ago Nov 17, 2010 1:07pm
Henrik Paul
1 decade ago Nov 17, 2010 3:41pm