Reputation: 2864
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
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