Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

UIRepeat skips last item when end is set and Ajax is used during visitTree #4421

Open
OpenMessageCoder opened this issue Sep 2, 2020 · 0 comments

Comments

@OpenMessageCoder
Copy link

OpenMessageCoder commented Sep 2, 2020

When the 'end' attribute is set and Ajax is used, UIRepeat skips the last child during visitTree.

This appears to be due to this line is visitChildren:

while (i < e && this.isIndexAvailable()) {

that I think should be:

while (i <= e && this.isIndexAvailable()) {

the same as in process. process has additional logic to also look at offset and size. It should probably be the same.

I'm a hobbyist, so don't have the skill to pull / build / correct / test.

Backing bean and xhtml attached to reproduce.
reproducer-UIRepeat-end.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant