Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 portlet 控制器(或 portlet 视图 JSP)中检查 portlet 处于什么状态(意思是:最大化、正常、最小化)?我正在使用 Liferay 6.1.0 和 Spring Portlet MVC。
您可以windowState从portletRequest.getWindowState(). 将值与javax.portlet.WindowState.NORMAL, javax.portlet.WindowState.MAXIMIZED,进行比较javax.portlet.WindowState.MINIMIZED。
windowState
portletRequest.getWindowState()
javax.portlet.WindowState.NORMAL
javax.portlet.WindowState.MAXIMIZED
javax.portlet.WindowState.MINIMIZED