Forums Register Login

Default Filters using PrimeFaces datatable

+Pie Number of slices to send: Send
Simply put, I would like to load default filters into a PrimeFaces datatable.


Note that I do change/set the filters in the backing bean, though all my attempts to get the datatable to refresh with the new filters against a (commandButton press) or futile.

--> dataTable.setFilters(filters); // New HashMap < String, Object >

Any suggestions or working code samples to share?




///////////////////////////////////////////////////////////////////////////






Thanks,
Robert

Reference:
Default filter values for datatable
https://code.google.com/p/primefaces/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20TargetVersion%20Reporter%20Owner%20Summary&groupby=&sort=&id=3212

How to load a Primefaces datatable with default filters?
http://forum.primefaces.org/viewtopic.php?f=3&t=42553

How is a p:datatable updated from a managed bean?
http://forum.primefaces.org/viewtopic.php?f=3&t=42518

oncomplete="PF('facilityRecordsTable').filter();" not working
http://forum.primefaces.org/viewtopic.php?f=3&t=42517

setting default value in primefaces datatable Filter
https://stackoverflow.com/questions/15450274/setting-default-value-in-primefaces-datatable-filter
+Pie Number of slices to send: Send
I recently start to build my own components library (TieFaces). One component is 'TableLookup' which actually using Primefaces Filter functions. Not sure whether is what you want.
Check this link : TieFaces TableLookup
+Pie Number of slices to send: Send
 

Robert Liguori wrote:Simply put, I would like to load default filters into a PrimeFaces datatable.


Note that I do change/set the filters in the backing bean, though all my attempts to get the datatable to refresh with the new filters against a (commandButton press) or futile.

--> dataTable.setFilters(filters); // New HashMap < String, Object >

Any suggestions or working code samples to share?  




///////////////////////////////////////////////////////////////////////////






Thanks,
Robert

Reference:
Default filter values for datatable
https://code.google.com/p/primefaces/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20TargetVersion%20Reporter%20Owner%20Summary&groupby=&sort=&id=3212

How to load a Primefaces datatable with default filters?
http://forum.primefaces.org/viewtopic.php?f=3&t=42553

How is a p:datatable updated from a managed bean?
http://forum.primefaces.org/viewtopic.php?f=3&t=42518

oncomplete="PF('facilityRecordsTable').filter();" not working
http://forum.primefaces.org/viewtopic.php?f=3&t=42517

setting default value in primefaces datatable Filter
https://stackoverflow.com/questions/15450274/setting-default-value-in-primefaces-datatable-filter



Hi.

I know this question have been made a long time ago, but just in case someone is looking for:



Regards.
A day job? In an office? My worst nightmare! Comfort me tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 12267 times.
Similar Threads
Trouble updating primefaces component w/ajax
Primefaces DataTable Field Specific and Global Filtering Issues
Error when I select a given data p:datatable
Submit dataTable fields
Primefaces datatable filter event
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:33:43.