Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 如何更新特定的行数据表_Jsf_Jsf 2_Primefaces_Datatable_Row - Fatal编程技术网

Jsf 如何更新特定的行数据表

Jsf 如何更新特定的行数据表,jsf,jsf-2,primefaces,datatable,row,Jsf,Jsf 2,Primefaces,Datatable,Row,在数据表中,我想动态更新每一行 <p:column headerText="Vehicle Info" width="65" id="vehicleInfo"> <h:outputText id="txt_count" value="count #{vehicleController.count}"/> </p:column> 我在这里使用p:poll进行自动更新(使数据表保持最新)。

在数据表中,我想动态更新每一行

<p:column headerText="Vehicle Info" width="65" id="vehicleInfo">
           <h:outputText id="txt_count"
                         value="count #{vehicleController.count}"/>
</p:column>
我在这里使用
p:poll
进行自动更新(使数据表保持最新)。 我的主要目标是随着数据(记录)的变化而动态更新

<p:column headerText="Vehicle Info" width="65" id="vehicleInfo">
           <h:outputText id="txt_count"
                         value="count #{vehicleController.count}"/>
</p:column>
我试过这个。

<p:column headerText="Vehicle Info" width="65" id="vehicleInfo">
           <h:outputText id="txt_count"
                         value="count #{vehicleController.count}"/>
</p:column>


如何实现它?

您是否尝试过示例中的选择器:

更新整个数据表有什么问题?通常情况下,这没什么大问题。你用“更新特定行”、“更新每行”和“数据(记录)”自相矛盾。具体的功能要求是什么?您在哪里编辑数据?
<p:column headerText="Vehicle Info" width="65" id="vehicleInfo">
           <h:outputText id="txt_count"
                         value="count #{vehicleController.count}"/>
</p:column>