Fórumok

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

Sainath K, módosítva 9 év-val korábban

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

New Member Bejegyzések: 2 Csatlakozás dátuma: 2015.01.29. Legújabb bejegyzések
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, módosítva 9 év-val korábban

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

New Member Bejegyzések: 2 Csatlakozás dátuma: 2015.01.29. Legújabb bejegyzések
Could anyone please suggest to overcome the issue.

Recoding the whole project will consume lot of efforts.

Thanksemoticon