Forums de discussion
maximize windowstate
Kannan G krishnan, modifié il y a 10 années.
maximize windowstate
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentes
I want to set the Window state MAXIMIZED for a jsp page in that page itself. I am using the code as below.
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setWindowState(WindowState.MAXIMIZED);
But it is not working. Can somebody help me???
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setWindowState(WindowState.MAXIMIZED);
But it is not working. Can somebody help me???
Apoorva Prakash, modifié il y a 10 années.
RE: maximize windowstate
Liferay Master Publications: 658 Date d'inscription: 15/06/10 Publications récentesKannan G krishnan:
I want to set the Window state MAXIMIZED for a jsp page in that page itself. I am using the code as below.
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setWindowState(WindowState.MAXIMIZED);
But it is not working. Can somebody help me???
Hi Krishna,
If you are on JSP, try the following:
<%@page import="javax.portlet.WindowState" %>
<portlet:renderurl windowState="<%=WindowState.MAXIMIZED.toString()%>" var="maxUrl" />
<a href="<%=maxUrl%>"> click to maximize the portlet</a>
HTH.
Kannan G krishnan, modifié il y a 10 années.
RE: maximize windowstate
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentes
Hi Prakash
Its working. But i need to set the page to be in maximized when it loads.
Its working. But i need to set the page to be in maximized when it loads.
Apoorva Prakash, modifié il y a 10 années.
RE: maximize windowstate
Liferay Master Publications: 658 Date d'inscription: 15/06/10 Publications récentesKannan G krishnan:
Hi Prakash
Its working. But i need to set the page to be in maximized when it loads.
Hi Krishna,
See this blog post however this is just a workaround.
HTH.
Kannan G krishnan, modifié il y a 10 années.
RE: maximize windowstate
Regular Member Publications: 121 Date d'inscription: 30/04/13 Publications récentesHi Krishna,
See this blog post however this is just a workaround.
Thank You Prakash....