Fórum

Render parameters are missing when we are creating a render URL to portlet

thumbnail
Suresh Yadagiri, modificado 7 Anos atrás.

Render parameters are missing when we are creating a render URL to portlet

Junior Member Postagens: 29 Data de Entrada: 24/03/14 Postagens Recentes
Render parameters are missing when we are creating a render URL to portlet 2 from portlet 1 using liferay-portlet:renderURL.

Portlet1 :
Created render URL to Portlet 2 using plid and portlet name. then added some parameters using param tag.

Portlet2:
When click link in portlet 1 we are seeing portlet2 but it's not receiving any parameters.

I did noticed that when creating renderURL if we use portlet instance ID instead of portlet name parameters are being sent. But we can use instance ID as it changes every time portlet added again.

Can someone help ?
Portlet 1 render URL: (working)
<liferay-portlet:renderURL portletName="com_abc_portlet_MyDashboardPortlet_INSTANCE_hotYzXtyuLiU" var="varPortletURL" plid="<%=mydashlayout.getPlid()%>" >
<portlet:param name="pcat" value="TEMP" />
</liferay-portlet:renderURL>

Portlet 1 renderURL (Not working)
<liferay-portlet:renderURL portletName="com_abc_portlet_MyDashboardPortlet" var="varPortletURL" plid="<%=mydashlayout.getPlid()%>" >
<portlet:param name="pcat" value="TEMP" />
</liferay-portlet:renderURL>
thumbnail
Suresh Yadagiri, modificado 7 Anos atrás.

RE: Render parameters are missing when we are creating a render URL to port

Junior Member Postagens: 29 Data de Entrada: 24/03/14 Postagens Recentes
Seems to be it's working as expected. When I change portlet 2 to non instanceable (com.liferay.portlet.instanceable=false) it able to receiverender parameters. If it's instanceable we need to use complete instance id as portlet name in liferay-portlet:renderURL