Foren

Remove primefaces widget from DOM objects

Aieie Brazorf, geändert vor 11 Jahren.

Remove primefaces widget from DOM objects

New Member Beiträge: 12 Beitrittsdatum: 17.12.12 Neueste Beiträge
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
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: Remove primefaces widget from DOM objects

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
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