开发者

How to Hide/view the portlets in liferay Portal?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜