Forums de discussion
Remove primefaces widget from DOM objects
Aieie Brazorf, modifié il y a 11 années.
Remove primefaces widget from DOM objects
New Member Publications: 12 Date d'inscription: 17/12/12 Publications récentes
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
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, modifié il y a 11 années.
RE: Remove primefaces widget from DOM objects
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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
http://www.liferay.com/community/forums/-/message_boards/view_message/7722678#_19_message_8017386