As told here Efficient JSF Pagination this is the best implementation when you have to show data from DB.
I'm going to implement a solution based on this http://hrycan.com/2012/03/28/primefaces-lazy-loading-datatable-for-jsf2/
lazy loading uses
public List<Record> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String,String> filters) { .....
I like to implement this situation
- Form with one field per col
- A search button
- A data table that will be updated when search is pressed, but use the filters indicated in form field.
Is this possible and how to manage external filters(not in data table)??. ??
|------------------------------------------------------------|
| |
|Form with a lot of field more or less 1 for each column. |
| |
|Serch button ; reset button |
| |
|------------------------------------------------------------|
| |
| Data table with pagination |
|------------------------------------------------------------|