Fórum
Liferay 6: Portlet View in MAXIMIZED State
Ravi Kiran, modificado 12 Anos atrás.
Liferay 6: Portlet View in MAXIMIZED State
Junior Member Postagens: 53 Data de Entrada: 08/04/12 Postagens Recentes
Once the request is made to the MVCPortlet class , i want to show the View in MAXIMIZED State . This is my Code in JSP Page
<portlet:actionURL name="addBook" var="addBookURL" />
<aui:form action="<%= addBookURL.toString() %>" method="post">
<aui:input type="text" name="name"></aui:input>
<aui:input type="password" name="pwd"></aui:input>
<aui:button type="submit"></aui:button>
</aui:form>
This is my MVCPortlet class :
if(true)
{
response.setPortletMode(PortletMode.VIEW);
response.setWindowState(WindowState.MAXIMIZED);
}
else
{
response.setPortletMode(PortletMode.VIEW);
response.setWindowState(WindowState.MAXIMIZED);
}
And this is the result (Please see the image below )
My question is that , i was expecting that once the Action class is called , so the Portlet will be displayed in MAXIMIZED State .
But still the Portlet remains in NORMAL State , please let me know why ?and how can i Portlet View in MAXIMIZED State after the result from MVCPortlet class .
<portlet:actionURL name="addBook" var="addBookURL" />
<aui:form action="<%= addBookURL.toString() %>" method="post">
<aui:input type="text" name="name"></aui:input>
<aui:input type="password" name="pwd"></aui:input>
<aui:button type="submit"></aui:button>
</aui:form>
This is my MVCPortlet class :
if(true)
{
response.setPortletMode(PortletMode.VIEW);
response.setWindowState(WindowState.MAXIMIZED);
}
else
{
response.setPortletMode(PortletMode.VIEW);
response.setWindowState(WindowState.MAXIMIZED);
}
And this is the result (Please see the image below )
My question is that , i was expecting that once the Action class is called , so the Portlet will be displayed in MAXIMIZED State .
But still the Portlet remains in NORMAL State , please let me know why ?and how can i Portlet View in MAXIMIZED State after the result from MVCPortlet class .
Riccardo Ferrari, modificado 12 Anos atrás.
RE: Liferay 6: Portlet View in MAXIMIZED State
Regular Member Postagens: 139 Data de Entrada: 13/11/10 Postagens Recentes
Hi,
your code should work ok. I've tried it on LR 6.1.
Are you defining your action class as:
You can achieve the same result setting the WindowState when defining the action URL in your JSP:
Hope it helps
your code should work ok. I've tried it on LR 6.1.
Are you defining your action class as:
public void addBook(ActionRequest actionRequest, ActionResponse actionResponse){
...
}
You can achieve the same result setting the WindowState when defining the action URL in your JSP:
<portlet:actionurl name="addBook" var="addBookURL" windowState="<%=WindowState.MAXIMIZED.toString() %>" />
Hope it helps
Ravi Kiran, modificado 12 Anos atrás.
RE: Liferay 6: Portlet View in MAXIMIZED State
Junior Member Postagens: 53 Data de Entrada: 08/04/12 Postagens Recentes
Thanks its working now , i restarted the system and it was working , without doing any changes at all.