Updating entire

on complete of

前端 未结 5 1809
旧巷少年郎
旧巷少年郎 2020-11-30 02:01

I am having difficulty re-rendering a PrimeFaces Datatable once a cell has been edited. Changing the value in one cell may change entries in the other cells, hence the need

5条回答
  •  猫巷女王i
    2020-11-30 02:40

    The rowEdit and cellEdit events does by design inside the table not update/re-render anything else than the current row, even not when explicitly specified in update attribute. It's the consequence of PrimeFaces' a bit overzealous attempt to minimize the response size. This makes sense in most of the cases, but not in specifically your case. It's worth an issue report.

    In the meanwhile, until they fix this behavior, your best bet is using to invoke the desired listener method and perform a full update of the table.

    Rewrite

    
        
        ...
    
    

    to

    
    
        
        ...
    
    

提交回复
热议问题