[
https://issues.jboss.org/browse/RF-13115?page=com.atlassian.jira.plugin.s...
]
Brian Leathem commented on RF-13115:
------------------------------------
window.unload is pretty late in the browser life-cycle to try and invoke a form submission
(the JSF mechanism for executing AJAX calls). Have you considered exposing your backing
bean as a restful web service, and invoking it that way?
a4j:jsFunction is not firing ajax request when the generated js
function is called at window.unload event
---------------------------------------------------------------------------------------------------------
Key: RF-13115
URL:
https://issues.jboss.org/browse/RF-13115
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.3.1
Environment: tomcat 6, windows 7 , IE 10 / chrome 28.0.1500.95
Reporter: Vaibhav Kapoor
Requirement : I need to call a method on backing bean on event of page unload. Approach :
So i have created a a4j:jsFunction and am trying to call it on window.unload event.
Issue Description : When the page refreshes, js function attached to window.unload event
is called and executes correctly. All statements in console.log() are called correctly.
But, the method in the backing bean is never called.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira