Hey there hello
I'm trying to get, as the subject says it, all the active portlets on a portal.
I've tried to set to inactive all the default portlets of Liferay, using the Control Panel and using the liferay-portlet-ext like this
1<portlet>
2 <portlet-name>31</portlet-name>
3 <struts-path>image_gallery</struts-path>
4 <include>false</include>
5 <active>false</active>
6 </portlet>
And then, tried to access the rest of the portlets using
1for (Portlet portlet : PortletLocalServiceUtil.getPortlets()){
2 if (portlet.isActive()){
3//BLABLA
4 }
5 }
but I only get ALL the porlets, including those that should be inactive.
Do I miss something?
I'm on Liferay 6.0.5, Tomcat 6.0.26
Thanks for helping!
Firmi prego dentro per inbandierare questo come inadeguato.