I have a problem with a LazyDataModel (list) in JSF. The problem is the next:
I have a xhtml with a search form and a list of results of that search. I do a first search and show on this pagined list, when I move on about the pages and I have, for example, in the fourth page:
If I realize a new search, in this new result, the list charge on page 4. The parameter first don't reset in every new search. Why?
- The bean has the annotations: @Component and @ViewScoped.
- The list with the results is a LazyDataModel and overwriting the methods: load, getRowKey and getRowData.
- The versions are: JSF 2.0, PrimeFaces 6.1 and Spring 4.0.3.RELEASE.