In JSF, how to handle repeating over a list that mutates

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-05-11T22:23:14Z Indexed on 2010/05/11 22:24 UTC
Read the original article Hit count: 232

Filed under:
|
|
|
|

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!

© Stack Overflow or respective owner

Related posts about j2ee

Related posts about java