setWindowState()

The system function portalLib.setWindowState() is used to set the window state of the portlet.

The function produces an error if the portlet cannot switch to the specified window state for any reason. A runtime error is also produced if setWindowState() is called during render processing rather than during the processing of an action.

Syntax

portalLib.setWindowState(
  state WindowStateKind)
state
A value of the WindowStateKind enumeration that indicates the window state setting for the portlet.

Example

portalLib.setWindowState(WindowStateKind.maximized);

Feedback