How to read portlet preferences when using IT Mill Toolkit

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


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:

Best Regards,

Many Thanks for quick answer!

This solved our problem.