留言板

Embed portlet in layout by Migrating liferay 5.2.3 portlet to liferay 6.2

Sainath K,修改在9 年前。

Embed portlet in layout by Migrating liferay 5.2.3 portlet to liferay 6.2

New Member 帖子: 2 加入日期: 15-1-29 最近的帖子
Hi All,

I am in a process to migrate the already established portlet in liferay 5.2.3 to 6.2

Already established portlet has 30 - 70 layout page where one portlet resides in column 1 and it has links to other portlets. Which will be dynamically loaded on to the "Column 2" of the same page. It is perfectly working in liferay 5.2.3

Here the coding was like

ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
LayoutTypePortlet layoutTypePortlet = themeDisplay.getLayoutTypePortlet();
long plid = themeDisplay.getPlid();
Layout layout = LayoutLocalServiceUtil.getLayout(plid);
String portletId = portletName + "_WAR_" + appName;
String targetColumn = "column-2";

String portletIdInc = layoutTypePortlet.addPortletId(userId, portletId);


if (Validator.isNotNull(targetColumn) && Validator.isNotNull(portletIdInc)) {
layoutTypePortlet.movePortletId(userId, portletId, targetColumn, 1);
}
layoutTypePortlet.resetStates();
LayoutServiceUtil.updateLayout(layout.getGroupId(), layout.isPrivateLayout(), layout.getLayoutId(), layout.getTypeSettings


But the same code in liferay 6.2 do execute without any error but the "column-2" doesnot load any portlet.

Could you please help me out in resolving this, its already a few weeks on which I have been stuck up.

Please do the needful.

Thanks.
Sainath K,修改在9 年前。

RE: Embed portlet in layout by Migrating liferay 5.2.3 portlet to liferay 6

New Member 帖子: 2 加入日期: 15-1-29 最近的帖子
Could anyone please suggest to overcome the issue.

Recoding the whole project will consume lot of efforts.

Thanksemoticon