Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Aieie Brazorf
Remove primefaces widget from DOM objects
January 15, 2013 1:18 AM
Answer

Aieie Brazorf

Rank: New Member

Posts: 12

Join Date: December 17, 2012

Recent Posts

Hi all,
I've seen that, using primefaces in liferay faces, when i create an element with attribute "widgetVar", those widgets appeared in the DOM properties. But when i remove the portlet (in my specific case when i click the "X" button of the picker where my portlet is allocated) all the elements named with "widgetVar" attribute remains in the DOM scope until i refresh the page.
I ask you if there is a way to remove automatically or manually those objects.
Thanks.

Aieie
Neil Griffin
RE: Remove primefaces widget from DOM objects
January 15, 2013 11:04 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2378

Join Date: July 26, 2005

Recent Posts

You can register to listen for a JavaScript event when the portlet is closed (removed).
http://www.liferay.com/community/forums/-/message_boards/view_message/7722678#_19_message_8017386