Details
Description
Some third party components use there own java script to submit to the server. (Calling form.submit() directly)
Intercept these calls, and perform an iceSubmit instead.
Example Code.
window.onLoad(function() {
$enumerate(document.forms).each(function(form) {
form.submit = function() {
iceSubmit(form, null, new Object());
};
form.onsubmit = function() {
iceSubmit(form, null, new Object());
};
});
});
Intercept these calls, and perform an iceSubmit instead.
Example Code.
window.onLoad(function() {
$enumerate(document.forms).each(function(form) {
form.submit = function() {
iceSubmit(form, null, new Object());
};
form.onsubmit = function() {
iceSubmit(form, null, new Object());
};
});
});
Forced MyFaces to inject the needed Javascript on each submit (removing custom attribute from the requestMap). Also, rewrite 'submit' and 'onsubmit' when the browser document is updated.