New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#11506 LazyDataModel: no need to count if first == 0 and lazyData.size #11873
base: master
Are you sure you want to change the base?
Conversation
…&& lazyData.size < pageSize
…zyData.size < pageSize
OK good just a single failing test @Rapster
|
# Conflicts: # primefaces/src/main/java/org/primefaces/component/datatable/DataTable.java
The problem is in CustomerLazyDataModelNoCountImpl. I don't think this is correct however it is intentional:
Changing it to return |
Return 0 is a supported feature If you check the docs. |
ok, then this should do the trick. The logic should be extracted to a method but I'm not sure on where should I put this this. Maybe in LazyDataModel, something like
|
Maybe we should change the return type of count to a nullable int |
That is not possible, LazyDataModel extends javax.faces.model.DataModel and has
|
I was talking about the count method, Not the getRowCount To make a difference between not implemented (null) vs zero rows |
…uted yet" This reverts commit a96b252.
It looks like all Integration Tests are passing! |
I'll have a look later in the week |
Reopened the PR to see what makes the build fail
Fix #11506