In JSF, how to handle repeating over a list that mutates
- by Jon
Hello,
In a JSF page, I am iterating over a list of items provided by a session-scoped backing bean. The list needs to be kept up-to-date, so it is replaced with a fresh list every X minutes by a thread (in a thread-safe way).
On my page, for each item I provide some text inputs and an "Update" button. If the list is refreshed before I hit "Update", the update does not happen (which is my problem).
I happen to be using a4j:repeat, but I think this could also apply to other methods of iteration, including using dataTables.
Any thoughts on how I can do this in a non-hackish way? Thanks!