Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的jsf页面中,有一个使用rich:dataTable的表格,表格的每一行都有ah:selectBoolenCheckbox,我想用它来检查一些行,然后单击一个按钮来触发只对选中行的动作。而且这个页面还有一个a4j:poll组件,每15秒刷新一次表格数据。之后问题来了:我的 a4j:poll 会调用一个动作来加载最新的数据,加载时间需要 2-4 秒。如果我在加载期间单击某个复选框以选择某些行,则加载完成后选中的复选框将丢失。那么您是否遇到过同样的问题以及如何避免呢?
Just don't update the whole table. Update only the cells which really need to be updated. You can use EL in reRender (RF 3.x) or render (RF 4.x) attribute of <a4j:poll> to dynamically populate a spaceseparated string of client IDs of all cells.
reRender
render
<a4j:poll>