Foren

How to get the url to another portlet

Sid L, geändert vor 13 Jahren.

How to get the url to another portlet

Junior Member Beiträge: 28 Beitrittsdatum: 03.12.10 Neueste Beiträge
I have 2 portlets portlet A and portlet B. portlet A resides on page A. What I want to achieve is on clicking on a link on page A I need to render the portlet b in an iframe.

How do I get the url of portlet B in portlet A?
thumbnail
Thiago Leão Moreira, geändert vor 13 Jahren.

RE: How to get the url to another portlet

Liferay Legend Beiträge: 1449 Beitrittsdatum: 10.10.07 Neueste Beiträge
You can use the tag liferay-portlet:renderURL for achieve this:

<liferay-portlet:renderurl portletName="portletB" />

Keep in mind that the portletName value must match exactly the name of the portlet. You can obtain it from source code of a page where the portlet is on it and have a format like "portletB_WAR_portletBportlet"

Hope this helps
Randeep Kaur, geändert vor 11 Jahren.

RE: How to get the url to another portlet

New Member Beitrag: 1 Beitrittsdatum: 18.01.13 Neueste Beiträge
You can achieve ths using renderURL tag .

<liferay-portlet:renderURL portletName="portletB"/>
Rahul Sharma, geändert vor 11 Jahren.

RE: How to get the url to another portlet

Junior Member Beiträge: 59 Beitrittsdatum: 11.01.12 Neueste Beiträge
You can also use the "sharing" url of the portlet B and then display it by the use of css or the java code.

Hope that helps!
thumbnail
Jitendra Rajput, geändert vor 11 Jahren.

RE: How to get the url to another portlet

Liferay Master Beiträge: 875 Beitrittsdatum: 07.01.11 Neueste Beiträge
You can also get URL for portlet reside on anther page using PortletURLFactoryUtil.