I am using primefaces v3.5.On the datatable I am using filter on one column. How can I set a default value to the filter while loading the page Itself.
Ideally, obtaining a reference to the datatable (either by binding the view datatable to a backing bean representation or walking the DOM tree) and doing this
Map theFilterValues = new HashMap();
theFilterValues.put("filterColumn","fooValue");
myDataTable.setFilters(theFilterValues);
Will set a default text value, but might not apply the filter.
Alternatively, this post in the primefaces issues queue suggests a jquery based option