Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Oleg Uris
New portlet in popup window
June 3, 2009 9:52 AM

Oleg Uris

Rank: New Member

Posts: 6

Join Date: June 3, 2009

Recent Posts

Dear gurus,
I’m a newbie in Liferay so would really appreciate any advice.
Configuration: Liferay 5.2.2 on Tomcat 6.0
My use case is pretty simple:
I want to click a link in Portlet A to show a popup window with Portlet B inside, of course passing some parameters.
Which I suppose should be implemented via Public Render Parameters (JSR 286 feature)
Portlets reside on different pages and deployed via different WARs.

The link in Portlet A looks in following fashion:
 2<liferay:renderURL var="listUrl" windowState="<%= LiferayWindowState.POP_UP.toString() %>" portletMode="view"
 3                   portletName="TemplateManagementPortlet_WAR_templatemanagementportlet">
 4    <liferay:param name="action" value="list"/>
 5    <liferay:param name="listTemplates" value="123"/>
 8<script type="text/javascript">
 9    function popup(url)
10    {
11        testwindow =, "mywindow", "location=0,status=0,scrollbars=1,width=800,height=800");
12        testwindow.moveTo(0, 0);
13    }
16<a href="" onclick="popup('${listUrl}')">Open Portlet B</a>

Where TemplateManagementPortlet_WAR_templatemanagementportlet is an ID of Portlet B
What I get is this message in tomcat console:

Current URL /web/guest/source-portlet?p_p_id=TemplateManagementPortlet_WAR_templatemanagementportlet&p_p_lifecycle=0&p_p_state=exclusive&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&p_r_p_2147369957_action=list&_TemplateManagementPortlet_WAR_templatemanagementportlet_listTemplates=123 generates exception: null

Looking forward to hear from you...
santhosh kumar
RE: New portlet in popup window
December 26, 2012 2:26 AM

santhosh kumar

Rank: New Member

Posts: 19

Join Date: April 10, 2011

Recent Posts


I have the same requirement .
Did you find solution for this.If so please help.


Participate in the State of Liferay Community 2017. Help the community and even win some prizes!