When using a List (for example ArrayList) of DTOs for a dataTable and removing some elements from the list, updating the table throw ajax, everythink works fine.
But when I first filter the rows inside the dataTable throw column or global Filter and then remove some of the still visible elements, they remain after ajax update. But the elements are arleady removed from the Java List.
How to reproduce
Visit the PrimeFaces Avalon CRUD example: https://www.primefaces.org/avalon/crud.xhtml and then:
Working example:
- Remove the first product throw the trash icon on the right of the row
- After the Ajax Update the removed row is gone
- First filter something. For example search for "game". You will see two products
- Now remove on of them like in the working example before
- After the Ajax Update the removed product still remains
Environment:
- PrimeFaces 10.0.0
- JSF Mojarra 2.3.14.SP01
- Testet in Firefox and Chrome