Java EE, Liferay

Set portlet public rendered parameters

Inter portlet communication (IPC) between portlets (JSR 286) can be done with public rendered parameters.

And how to append this parameters to links? Liferay Portal framework provides JSP taglib to generate portlet render and action links.

<%@ taglib uri="" prefix="liferay-portlet" %>  
<liferay-portlet:renderURL var="myurl" portletName="showme_myportletWAR"> 
 <liferay-portlet:param name="articleId" value="110832"/> </liferay-portlet:renderURL>

<a href="<%=myurl %>" title="">Link</a>

What is very important is portletName attribute which defines destination portlet ID on page.
Portlet ID consist from portlet name and WAR file in which portlet has been deployed (except for Liferay build-in portlets which has only portlet name.

Following Portlet 2.0 Specifications public rendered parameters has to be predefined in portlet.xml file.


1 thought on “Set portlet public rendered parameters”

  1. The UI to configure the communication across portlets can be accessed by clicking the configuration icon in the upper right corner of the portlets (note that the exact position might vary depending on the theme being used). Once in the configuration UI, if the portlet supports comunication through public render parameters an screen similar to the following will be shown.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s