This code invokes an action from another portlet and sends 2 parameters
you can use:
liferay-portlet:renderURL liferay-portlet:actionURL <liferay-portlet:actionURL name="addWallEntry" plid="<%= portletId2 %>" portletName="3_WAR_socialnetworkingportlet" var="shareUrl"> <portlet:param name="redirect" value="<%= viewFolderURL.toString() %>" /> <portlet:param name="comments" value="<%= shareMessage %>" /> </liferay-portlet:actionURL> <liferay-ui:icon image="share" url="<%= shareUrl %>"/>
and you should know the concepts plid: page page link identifier portletName: portlet name with name
The renderURL tool and actionURL are tags provided by Liferay that extend the standard tld. Note: this type of communication is not part of the standard portlets JSR168 and JSR286.
Plid is the identifier of the page on which we deploy one portlet, we can use LayOutLocalService to find the identifier or query directly in the database.
PortletName is the portlet identifier and is part of the portlet deployment descriptor. This identifier consists of portletId + WAR + thenameofwarthatencapsulatestheportlet and, optionally, INSTANCE if the portlet is not valid.
source share