Forums de discussion

Problem related to popup window

Sunil Kulkarni, modifié il y a 11 années.

Problem related to popup window

Junior Member Publications: 94 Date d'inscription: 24/06/11 Publications récentes
Hello All,

I am trying the popup window with LR6.1.

When I have deployed my books portlet (MVC Portlet) it is showing as following


and when I clicked on the Show Popup button, following is my output



Following is the code from view.jsp
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>


<portlet:defineobjects />

This is the <b>Books</b> portlet.................

<portlet:renderurl var="showPage">
	<portlet:param name="jspPage" value="/popup.jsp" />
</portlet:renderurl>


&lt;%
	String taglibUrl = "javascript:" + renderResponse.getNamespace() + "openPopupView()";
%&gt;
<div>
	<aui:button onClick="<%= taglibUrl %>" value="Show Popup" />
</div>

<aui:script>
	function <portlet:namespace />openPopupView() {
		Liferay.Util.openWindow(
			{
				dialog: {
					width:820
				},
				id: '<portlet:namespace />openPopupView',
				title: 'Popup',
				uri: '&lt;%= showPage %&gt;'
			}
		);
	}
</aui:script>


In the screen the popup displayed with Liferay docbar and its related all its value.

I want to show the only contents which are present in the popup.jsp in the popup.

How do I do that.?
Rakesh Kaparthi, modifié il y a 10 années.

RE: Problem related to popup window

New Member Envoyer: 1 Date d'inscription: 02/10/13 Publications récentes
I am also facing the same problem as the complete dock bar is visible within the portlet,can any one suggest me with better solution for this.
thumbnail
Rajeeva Lochana .B.R, modifié il y a 10 années.

RE: Problem related to popup window

Junior Member Publications: 67 Date d'inscription: 04/01/10 Publications récentes
Hi Sunil,

add windowState check the below example.


<portlet:renderurl var="showPage" windowstate="<%=LiferayWindowState.POP_UP.toString()%>">
  <portlet:param name="jspPage" value="/popup.jsp" />
</portlet:renderurl>