Integrating Vaadin 7 portlets with Liferay

Hello guys,

I’m new Vaadin user and I’m trying to set up enviroment for Liferay + Vaadin development. I managed to set up Vaadin 7 in Eclipse but Liferay use Vaadin 6 by default so I would like to develop using current Vaadin version. I followed instructions for migrating to Vaadin 7 on links:

https://vaadin.com/book/-/page/portal.liferay.html#portal.liferay.remove


https://vaadin.com/wiki?p_p_id=36&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=row-1&p_p_col_pos=1&p_p_col_count=3&p_r_p_185834411_title=Integrating+Vaadin+7+with+Liferay&p_r_p_185834411_nodeName=vaadin.com+wiki&_36_struts_action=%2Fwiki%2Fview

After taking needed actions suggested in Wiki and Book, I tried to create new portlet but got error in portlet.xml on line:
com.vaadin.terminal.gwt.server.ApplicationPortlet2

ERROR: Portlet cannot find class com.vaadin.terminal.gwt.server.ApplicationPortlet2.java which is in vaadin.jar that I have deleted following instructions on those links.

Can anyone help me, I’m trying to solve this problem for couple of hours?? Thanks!

Hey did you get solution? I am having same problem.

Thanks!

Hello,

you need to replace the reference to ApplicationPortlet2 with VaadinPortlet, as indicated in the following snippet:




this-is-your-portlet-name
Here is the display name
com.vaadin.server.VaadinPortlet

UI
com.example.MyPortletUI




com.example.MyPortletUI is the name of the class that extends UI.

Now, if you got your portal dependency jars right, it should work.

PS: There is an
add-on in the Liferay marketplace by Dave Nebinger
to manage Vaadin 7 in Liferay 6.2+.

HTH

Alex