1

我的问题是恢复在 liferay 6.2 中创建的 portlet 列表,而不显示 liferay 6.2 中的默认 portlet。我试试这个代码 <% boolean includeSystemPortlets = false;

                        List<Portlet> portlets = PortletLocalServiceUtil.getPortlets(company.getCompanyId(), includeSystemPortlets, false);

portlets = ListUtil.sort(portlets, new PortletTitleComparator(application, locale));

                        for (Portlet curPortlet : portlets) {
                            if (Validator.isNull(curPortlet.getPortletId()) || hiddenPortletIds.contains(curPortlet.getPortletId())) {
                                continue;
                            }

                            editPermissionsURL.setParameter("portletResource", curPortlet.getPortletId());
                        %>

但它显示所有创建的 portlet 和默认 portlet

我想更改此代码:“List portlets = PortletLocalServiceUtil.getPortlets(company.getCompanyId(), includeSystemPortlets, false);”因为它显示所有 portlet

4

0 回答 0