Fórum

Remove primefaces widget from DOM objects

Aieie Brazorf, modificado 11 Anos atrás.

Remove primefaces widget from DOM objects

New Member Postagens: 12 Data de Entrada: 17/12/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Remove primefaces widget from DOM objects

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
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