Search code examples
liferayliferay-aui

Add specfic dynamic list in jsp page on runtime in liferay


I am trying to add dynamic list on jsp page on runtime in liferay using following tag liferay-portlet: runtime :

< liferay-portlet: runtime portletName="169" queryString="" />

But it is showing nothing.

< liferay-portlet: runtime portletName="25" queryString="" /> is working fine.

Any help will be highly appreciable.


Solution

  • Liferay Portlet(169), Dynamic Data List Display is instanceable portlet(each instanceable portlet will have postfix id with it) thats the reason <liferay-portlet: runtime portletName="169" queryString="" /> is not working.

    You have to use below snippet to add portlet(169)

    <liferay-portlet:runtime portletName="169_INSTANCE_2JmnDA0ZV2dl" queryString="" />