Queequeg
Queequeg

Reputation: 2864

Liferay Portlet check the view state

Is it possible to check what state the portlet is in (meaning: maximized, normal, minimized) in the portlet Controller (or portlet view JSP)? I am using Liferay 6.1.0 and Spring Portlet MVC.

Upvotes: 0

Views: 1425

Answers (1)

Felix Christy
Felix Christy

Reputation: 2193

You can get the portlet windowState from the portletRequest.getWindowState(). Compare the value with the javax.portlet.WindowState.NORMAL, javax.portlet.WindowState.MAXIMIZED, javax.portlet.WindowState.MINIMIZED.

Upvotes: 4

Related Questions