Liferay 5.2.3 + Vaadin 6

Luis Losada, modified 12 Years ago. New Member Posts: 9 Join Date: 5/20/13 Recent Posts
I have installed Vaadin 6 in Liferay 5.2.3. When I install a very simple Vaadin 6 portlet the Liferay's menu stop working.

The problem is that when the mouse is over a Liferay's menu, it isn't shown (should appears a submenu).

It looks like the vaadin is overriden the Liferay event that shows the submenus...

Can anyone tell me any tip about how to restore these events?? (or maybe where can I found some documents about how the liferay uses the JQuery for the User Interface)
thumbnail
David H Nebinger, modified 12 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Hmm, I'm not sure that Vaadin6 is compatible with Liferay 5.2.3. I mean, seriously, that version is what, almost 5 years gone now?
Luis Losada, modified 12 Years ago. New Member Posts: 9 Join Date: 5/20/13 Recent Posts
Vaadin 6 is compatible width Liferay 5.2.3.

It is working with vaadin 6.1.1, Liferay 5.2.3 and tomcat 6 (following the intructions here Running Vaadin MailPortlet in Liferay 5.2.3)

The problem is when I try to update to the last 6 version (6.8.12), the javascript event over in the Liferay´s menu is not working (function hoverIntent of jquery).

I checked the version of the jquery in dock.js (adding alert('Liferay.Dock:' + jQuery().jquery); in init function), where the event is registered and it´s ok (version 1.2.6). The events are registered for the menu, but it´s not working.

Any idea?

Thanks in advance!!
thumbnail
David H Nebinger, modified 12 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Here's the thing... Liferay 5 is based on jQuery, but Liferay 6 is based on AUI. When the underlying JS framework changed, Vaadin would have had to change their code to work to register event handlers and the like...

The latest version of Vaadin certainly works under Liferay 6 (I'm using it on my site), but I doubt that it would work under 5 because of the JS changes.

If 6.1.1 works and you want a newer version, you're going to have to increment slowly to find the last version which supports Liferay 5 (I think Liferay 6 support came in around version 6.6 line of Vaadin).