How to read portlet preferences when using IT Mill Toolkit

Hi,
When running IT Mill Toolkit Application as an Liferay Portlet, we need to read portlet preferences. (portlet.xml) How can we do this?

Hi,

It’s been a while since I did portlet work, but if I remember correctly, you can read preferences and init-params in your PortletListener like so:

// get preferences
PortletPreferences prefs = request.getPreferences();

// init-param
String param = request.getPortletSession().getPortletContext().getInitParameter("myparam");

Short article about portal integration: http://dev.itmill.com/wiki/Articles/PortalTools

Best Regards,
Marc

Many Thanks for quick answer!

This solved our problem.

Timo