I'm developing a web app using liferay 6.2 server. 

I have a page where i have posted 4 portlets. 

I want to understand, Can we hide/show few portlets at runtime on action of other portlets. 

For eg. I want to hide a portlet B on click of a button in portlet A. 

* Is it possible to show/hide portlets at runtime? How? Please point me to any online reference if possible.
* Is it advisable to do it?
* If not, what is the ideal way to implement this behaviour in portlets?