Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is it possible to trigger action in backing bean on page unload event?

844769Mar 7 2011 — edited Mar 9 2011
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2011
Added on Mar 7 2011
7 comments
1,474 views