Skip to content

Instantly share code, notes, and snippets.

/.java Secret

Created August 3, 2015 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c3261cc6948ac89347e1 to your computer and use it in GitHub Desktop.
Save anonymous/c3261cc6948ac89347e1 to your computer and use it in GitHub Desktop.
//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