• Portlet Window States In Liferay

    Portlet Window States In Liferay

    A Portlet Window State Indicates area of the portlet to be rendered by the portlet, Basically 3 Portlet States are supported by the JSR Portlet Specification Standard, Liferay Provides 2 Additional States For more flexibility on the Render State Controll.

    1. Normal
    2. Maximized
    3. Minimised
    4. Popup
    5 .Extended


    <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> <%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui"%> <%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%> <%@ taglib uri="http://liferay.com/tld/theme" prefix="theme"%> <%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui"%> <portlet:defineObjects /> <theme:defineObjects /> This is the <b>Window State</b> portlet in View mode. <!-- JSR Specific Portlet Window States --> <portlet:renderURL var="normarURL" windowState="<%=LiferayWindowState.NORMAL.toString()%>"/> <portlet:renderURL var="maximizedURL" windowState="<%=LiferayWindowState.MAXIMIZED.toString()%>"/> <portlet:renderURL var="minimisedURL" windowState="<%=LiferayWindowState.MINIMIZED.toString()%>"/> <!-- Liferay Specific Portlet Window States --> <portlet:renderURL var="popupURL" windowState="<%=LiferayWindowState.POP_UP.toString()%>"/> <portlet:renderURL var="exclusiveURL" windowState="<%=LiferayWindowState.EXCLUSIVE.toString()%>"/> <br> <aui:button href="${normarURL}" value="Normal"/> <br> <aui:button href="${maximizedURL}" value="Maximized"/> <br> <aui:button href="${minimisedURL}" value="Minimised"/> <br> <aui:button href="${popupURL}" value="Popup"/> <br> <aui:button href="${exclusiveURL}" value="Exclusive"/>


    Deploy The portlet to know how Window States Works in Liferay Portlet


  • 2 comments: