Vaadin AppllicationPortlet Liferay

Hello,

i’m very new to Vaddin so be patient. I’m looking for best practices to integrate Vaadin portlet/application on Liferay portal.
I read many tutorial about extending Vaadin Application (+ PortletListener) and seems the way to go but,
What are ApplicationPortlet (or ApplicationPortlet2) intended for?
What is the usage for these classes?

Thanks in advance

Hi,

the
ApplicationPortlet2
is the class that you define as the
portlet-class
of your application in the
portlet.xml
descriptor. The actual Vaadin application class should be defined as an initialization parameter (
init-param
).

For example:

<portlet-class>com.vaadin.terminal.gwt.server.ApplicationPortlet2</portlet-class>
<init-param>
    <name>application</name>
    <value>com.example.myportlet.MyportletApplication</value>
</init-param>

See the
Portal Integration
chapter in Book of Vaadin for more thorough explanation.