I am using primefaces 5.0 and datatable with filter option. But it is unconvenient to type one letter and wait when it is will filter and update then type next letter. It is also slows a server. Therefore there is need for press enter key after you fill filter option and then filter.
There was filterDelay option in primefaces 3.5 but I dont see in primefaces 5.
I used to hack by javascript code as follows
$('th .ui-column-filter').each(function() {
var inp = $(this);
inp.unbind('keydown');
inp.unbind('keyup');
inp.unbind('keypress');
inp.keypress(function(event) {
if (event.keyCode == 13) {
alert("entered");
event.stopPropagation();
gwsReportAllPartListDataTable.filter();
return false;
}
});
});
Well, it did not work.
How can I do it with primefaces 5?