Is it possible to trigger action in backing bean on page unload event?
844769Mar 7 2011 — edited Mar 9 2011Hi,
There is a RichPopup in my page which has a Listener to save data or not by user choice "Data change detected, do you want to save those changes?"
I've tried with the javascript event 'window.onbeforeunload', but this way must be fit with a Servlet function which I am not allowed to use.
The attibute 'onunload' in the tag '<af:document>' seems useless. Even there is few description or example in the 'Tag Reference'.
So, is it possible to trigger action in backing bean on page unload event? Thanks in advance for helping.
Viva