I'm using Liferay 6.1 with Struts2 and trying to get portlet preferences in the action class. My project includes 3 portlets and they all use the same action class. The class implements PortletPreferencesAware
interface and overrides the setPortletPreferences()
method. My question is, as all three portlets in the project have different preferences, which portlet's preferences will be returned? I don't seem to be able to get the values I want using preferences.getValue()
in the action class.
Note, I can get the preferences in the JSP so I know they are set up correctly
Thanks