Update single row in JSF / Primefaces datatable using AJAX

后端 未结 4 446
孤城傲影
孤城傲影 2020-12-17 21:17

How could I update a single row in a p:datatable when using AJAX?

I don\'t want to update the whole datatable because it has a lot of rows and it\'s going to take so

4条回答
  •  囚心锁ツ
    2020-12-17 21:57

    You can use @row(n) search expression which does just that - it updates the nth row in a table. In order to update the current row, you need to pass row index as an argument. Set rowIndexVar="rowIdx" attribute on and then:

    
    

提交回复
热议问题