Skip to content
This repository was archived by the owner on Mar 20, 2021. It is now read-only.
This repository was 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

@OpenMessageCoder

Description

@OpenMessageCoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions