You must redefine it on the prototype.
var oldMethod = $.ui.tapestryFieldEventManager.prototype.showValidationMessage;
$.ui.tapestryFieldEventManager.prototype.showValidationMessage = function (message) {
alert("worky");
oldMethod.apply(this,arguments);
};
Of course, you can skip applying the old method if your new method does everything the old method did.
source
share