Skip to content

Instantly share code, notes, and snippets.

/.java Secret

Created Aug 3, 2015
What would you like to do?
//store the actual request-function in a variable
var oldRequestFn = jsf.ajax.request;
var executeOptions;
//override the request function
jsf.ajax.request = function (source, event, options) {
//temporarily store the execute-options to use
//them in the getViewState-function
executeOptions = options.execute;
//call the actual request function. This method will call the
//getViewState-function internally
oldRequestFn(source, event, options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment