Search code examples
javascriptjqueryrichfaces

How to add a global oncomplete JavaScript method to Richfaces?


I'm looking for a possibility to attach a JavaScript method which is always invoked after every AJAX request?

In detail: I would like to listen to changes on the columns (using paginator, sorting, filter) and invoke a method after the Richfaces implementation was called.

Since Richfaces 4.x is based on jQuery, I guess there is a way to do this with jQuery?


Solution

  • I have overseen the onready attribute of the Extended Data Table.

    <rich:extendedDataTable onready="foo();" ...
    

    foo() will be invoked after every change on the Extended Data Table.