Liferay: get PortletId and Plid from init(PortletConfig) [i.e, no request object, just PortletConfig]
问题 I would like to get both values, and since init(Portletconfig) is executed when loading the portlet, I don't see any doubt about whether this values should be available. For portletId I tried String portletId = ((PortletConfigImpl) portletConfig).getPortletId(); but it seems I can't. Guess it is because the impl is in another jar not meant to be accessed from portlets By the way, my main goal is to get to pass both params to another non-request context so I can do final PortletPreferences