Get URL of Portlet By Passing Portlet ID



HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(portletRequest);

                             httpRequest = PortalUtil.getOriginalServletRequest(httpRequest)

long plid = PortalUtil.getPlidFromPortletId(themeDisplay.getScopeGroupId(), portletID);  

PortletURL portletURL = PortletURLFactoryUtil.create(httpRequest ,portletId, plid ,PortletRequest.RENDER_PHASE);

Comments

  1. Thank you so much for your great contribution.I like the way of writing and presenting.You can share more informative article for me.Easily understand all the information.

    ReplyDelete
  2. In your blog I was happy to see your article, better than last time, and have made great progress, I am very pleased. I am looking forward to your article will become better and better. Custom Essay Writing Service

    ReplyDelete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate