Fórum

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

thumbnail
Deepak Gothe, modificado 15 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 19/05/08 Postagens Recentes
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
Deepak Gothe, modificado 15 Anos atrás.

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

Junior Member Postagens: 44 Data de Entrada: 19/05/08 Postagens Recentes
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
Sudharsan Selvaraj, modificado 13 Anos atrás.

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

New Member Postagens: 6 Data de Entrada: 03/08/10 Postagens Recentes
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.
lonnieinskeep lonnieinskeep, modificado 13 Anos atrás.

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

New Member Mensagem: 1 Data de Entrada: 16/09/10 Postagens Recentes
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
Renata Siega, modificado 11 Anos atrás.

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

Junior Member Postagens: 34 Data de Entrada: 29/10/12 Postagens Recentes
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
Joel Kozikowski, modificado 15 Anos atrás.

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

Expert Postagens: 405 Data de Entrada: 28/06/06 Postagens Recentes
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.