Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Sunil Kulkarni
Problem related to popup window
4 février 2013 06:30
Réponse

Sunil Kulkarni

Rang: Junior Member

Publications: 94

Date d'inscription: 24 juin 2011

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
 1<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
 2<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
 3
 4
 5<portlet:defineObjects />
 6
 7This is the <b>Books</b> portlet.................
 8
 9<portlet:renderURL var="showPage">
10    <portlet:param name="jspPage" value="/popup.jsp"/>
11</portlet:renderURL>
12
13
14<%
15    String taglibUrl = "javascript:" + renderResponse.getNamespace() + "openPopupView()";
16%>
17<div>
18    <aui:button onClick="<%= taglibUrl %>" value="Show Popup"/>
19</div>
20
21<aui:script>
22    function <portlet:namespace />openPopupView() {
23        Liferay.Util.openWindow(
24            {
25                dialog: {
26                    width:820
27                },
28                id: '<portlet:namespace />openPopupView',
29                title: 'Popup',
30                uri: '<%= showPage %>'
31            }
32        );
33    }
34</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
RE: Problem related to popup window
30 octobre 2013 22:29
Réponse

Rakesh Kaparthi

Rang: New Member

Publications: 1

Date d'inscription: 1 octobre 2013

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.
Rajeeva Lochana .B.R
RE: Problem related to popup window
5 novembre 2013 01:49
Réponse

Rajeeva Lochana .B.R

Rang: Junior Member

Publications: 65

Date d'inscription: 4 janvier 2010

Publications Récentes

Hi Sunil,

add windowState check the below example.

1
2<portlet:renderURL var="showPage" windowState="<%=LiferayWindowState.POP_UP.toString()%>">
3  <portlet:param name="jspPage" value="/popup.jsp"/>
4</portlet:renderURL>