Fórum
How to get link of page in class extending MVCPortlet?
Rupesh Chotai, modificado 13 Anos atrás.
How to get link of page in class extending MVCPortlet?
Regular Member Postagens: 163 Data de Entrada: 23/03/11 Postagens Recentes
Hi,
I am writing one portlet which does validation of user entered parametes and after successfull validation it has to redirect to other page of the portal? How to get the access to that page in class extending MVCPortlet?
Thanks for the replies.
I am writing one portlet which does validation of user entered parametes and after successfull validation it has to redirect to other page of the portal? How to get the access to that page in class extending MVCPortlet?
Thanks for the replies.
Amos Fong, modificado 13 Anos atrás.
RE: How to get link of page in class extending MVCPortlet?
Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Hi Rupesh,
The way I do it this:
You can use this method in PortalUtil to find the layout which your portlet is on
Then with the Plid, you can create portletURL from PortletURLFactoryUtil.
The way I do it this:
You can use this method in PortalUtil to find the layout which your portlet is on
public long getPlidFromPortletId(
long groupId, boolean privateLayout, String portletId)
Then with the Plid, you can create portletURL from PortletURLFactoryUtil.
Rupesh Chotai, modificado 13 Anos atrás.
RE: How to get link of page in class extending MVCPortlet?
Regular Member Postagens: 163 Data de Entrada: 23/03/11 Postagens Recentes
Thanks Amos for the reply.
I am checking this now.
I am checking this now.