13.5. Portlet Modes and Window States

Window State

The Portlet API defined three window states: normal, minimized and maximized. The portlet implementation must decide what to render for each of these window states. Web Flow exposes the string value of the window state under portletWindowState via the request map on the external context.

requestContext.getExternalContext().getRequestMap().get("portletWindowState");
			
externalContext.requestMap.portletWindowState
			

Portlet Mode

The Portlet API defined three portlet modes: view, edit and help. The portlet implementation must decide what to render for each of these modes. Web Flow exposes the string value of the portlet mode under portletMode via the request map on the external context.

requestContext.getExternalContext().getRequestMap().get("portletMode");
			
externalContext.requestMap.portletMode