开发者

How to Hide/view the portlets in liferay Portal?

开发者 https://www.devze.com 2023-01-17 13:59 出处:网络
I m developing portlets on liferay portal using icefaces, i want to hide/view the portlet programmaticaly from an action written in my managed bean.

I m developing portlets on liferay portal using icefaces, i want to hide/view the portlet programmaticaly from an action written in my managed bean. so please help m开发者_Go百科e ASAP?

Thanks in advance...


You can invoke the method ActionResponse.setWindowState(WindowState.MINIMIZED) from an action of your portlets. When talking about actions, I am referring to the ActionResponse and EventResponse classes of the portlets API.


I have done something similar. If there is no data found on the portlet I usually hide it. I have check box in preference, I enable that only when needed. https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/6-1/implementing-configurable-portlet-preferences

0

精彩评论

暂无评论...
验证码 换一张
取 消