Mail portlet Liferay 6.0.1.


Trying to get the Vaadin mail portlet to work in Liferay 6.0.1 (release candidate). Have identified a few things needed in order for the portlet to compile properly:

Rebuild services for plugin

Fixes problems with CounterService (which is no longer available through the Liferay Service API)



    message.getCompanyId(), document.get(Field.UID), document);


    message.getCompanyId(), document);


Uppdate MailPortletListener:

Each of these methods need an additional parameter Window window

Reimport PortalException and SystemException:

The location of PortalException and SystemException have changed. Change imports


import com.liferay.portal.PortalException;
import com.liferay.portal.SystemException;


import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;

In the following files:

(scanned through plugin)

On deploy I run into similar issues with Spring beans as discussed in
this thread

I saw that Henri posted a WAR with a quick fix (?) to the problems with Spring beans in that thread. What changes did you do Henri? Have you looked into getting the portlet to deploy in Liferay 6.0.1 yet?


Hi Erik, and sorry for the late reply.

Thank you for the help in making the mail portlet work with the Liferay release candidate.
My previous testing environment was broken with Liferay 6.0.x - I built a new, clean one but did not get to test and fix the mail portlet yet. I will now take a look at it again and try to fix these issues.

Also, there might be some additional features coming (drag and drop of mail to folders) - we tested this internally earlier this year, but did not commit it to the incubator as the bundled Vaadin version in Liferay did not support drag and drop at that time. If these changes don’t break any functionality with the latest version, we could consider committing them as well.

I’ll get back to this thread with more details soon.

I commented out several apparently unused/obsolete bean definitions related to Velocity and logAdvice.

Hi Henri,

Thanks for your reply. Drag and drop between folders sounds like a great feature addition.

If not too much trouble, let me know when you have commited your fixes to the Liferay svn. Do you know when you will be able to look at this? Also, if you need any help / comments / testing, just let me know.


I did most of the changes you mentioned apart from rebuilding the services. However, there is another issue in that branch (circular dependency between constants in the built services) that effectively prevents me from testing the mail portlet there. Furthermore, Liferay is also doing some work on the mail portlet.

I will work for now on a separate copy of the portlet and publish my changes after the changes from Liferay are available - unfortunately I cannot give any schedule for this.