Nabeil Ahmed
Nabeil Ahmed

Reputation: 31

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 me ASAP?

Thanks in advance...

Upvotes: 0

Views: 2286

Answers (2)

Vineela Thonupunuri
Vineela Thonupunuri

Reputation: 591

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

Upvotes: 0

Montecarlo
Montecarlo

Reputation: 1324

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.

Upvotes: 1

Related Questions