I understand, that there can be situations when a user actually
doesn't leave a page the usual way, but if there were a method as
described, it could at least be helpful for all the preceding
page-leave-events under normal conditions.
I never use it, but there's javascript's onbeforeunload event. Have a
look at http://stackoverflow.com/questions/1704533/intercept-page-exit-event
You can add it to a page like so:
add(new AjaxEventBehavior("beforeunload") {
@Override
protected void onEvent(AjaxRequestTarget target) {
// Clear data
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]