掲示板

how to get the list of portlet instances that are in different tabs?

thumbnail
15年前 に Deepak Gothe によって更新されました。

how to get the list of portlet instances that are in different tabs?

Junior Member 投稿: 44 参加年月日: 08/05/19 最新の投稿
Hi,

How to get the list of portlet instances that are present across different tabs?

For example, consider that there are two tabs, Tab1 and Tab2.

Tab1 has two portlets with ids "PortletApp1_WAR_HelloPortlet1_INSTANCE_xwq" and "PortletApp1_WAR_HelloPortlet2_INSTANCE_qwe"

Tab2 has two portlets with ids "PortletApp2_WAR_PortletA_INSTANCE_erq" and " PortletApp1_WAR_PortletB_INSTANCE_rty"

The method PortletLocalServiceUtil.getPortlets() returns "PortletApp1_WAR_HelloPortlet1", "PortletApp1_WAR_HelloPortlet2" , "PortletApp2_WAR_PortletA" and " PortletApp1_WAR_PortletB".

But what i need is "PortletApp1_WAR_HelloPortlet1_INSTANCE_xwq", "PortletApp1_WAR_HelloPortlet2_INSTANCE_qwe", "PortletApp2_WAR_PortletA_INSTANCE_erq" and " PortletApp1_WAR_PortletB_INSTANCE_rty"

How to get this?

Thanks for the help,
Deepak
thumbnail
15年前 に Deepak Gothe によって更新されました。

RE: how to get the list of portlet instances that are in different tabs?

Junior Member 投稿: 44 参加年月日: 08/05/19 最新の投稿
Found the solution. I can get the list of portlets from the Layout and the list of Layouts can be obtained from ThemeDisplay.

Thanks,
Deepak
13年前 に Sudharsan Selvaraj によって更新されました。

RE: how to get the list of portlet instances that are in different tabs?

New Member 投稿: 6 参加年月日: 10/08/03 最新の投稿
Hi,

Can you brief out the steps to get the portlet instances (list) from the layout.

Currently we have 4 tabs (Welcome, Home, Forum and Calendar). I need to get the list of portlets in each tab (page).

I have followed below code..

Group group = GroupServiceUtil.getGroup(companyId, "Guest");
List<Layout> layouts = LayoutLocalServiceUtil.getLayouts(group.getGroupId(), privateLayout);

Now, i am having the list of layout. How do i get the portlet instances in each layout.

Could you please send us code.

Thanks,
Sudharsan.
13年前 に lonnieinskeep lonnieinskeep によって更新されました。

RE: how to get the list of portlet instances that are in different tabs?

New Member 投稿: 1 参加年月日: 10/09/16 最新の投稿
Users of the Domino Web Access portlet must select an option to enable people awareness (presence) within their Domino Web Access preferences. Instruct users to click the Preferences button within the portlet, click the Other tab, and select Enable Instant messaging.

___________

Vlc Player Download
11年前 に Renata Siega によって更新されました。

RE: how to get the list of portlet instances that are in different tabs?

Junior Member 投稿: 34 参加年月日: 12/10/29 最新の投稿
Sudharsan Selvaraj:
Hi,

Now, i am having the list of layout. How do i get the portlet instances in each layout.

.


Were you able to find the portlet instances in each layout?
thumbnail
15年前 に Joel Kozikowski によって更新されました。

RE: how to get the list of portlet instances that are in different tabs?

Expert 投稿: 405 参加年月日: 06/06/28 最新の投稿
Deepak Gothe:

How to get the list of portlet instances that are present across different tabs?


There is a fairly handy utility class in the "PortletFaces" library in incubation that is designed just for this. See the class com.liferay.portletfaces.util.PortletIterator.java in svn under the inclubation/portletfaces/trunk/portletfaces-common/src/main/java branch.