Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Default Filters using PrimeFaces datatable  RSS feed

 
author
Posts: 13
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!