2011-08-13 61 views

回答

2

它引用组件的ID,当你选择一行时,组件的ID将被更新为ajax。例如,详细显示。

<p:dataTable id="mytable" onRowSelectUpdate="mydisplay"> 
    ... 
</p:dataTable> 
... 
<p:someComponent id="mydisplay"> 
    <p>This component will be ajax-updated whenever a row is selected. 
</p:someComponent> 
1

从PrimeFaces用户指南,127页:

份(S),以便在选择了行后,即时更新。

听起来像它的工作方式与Ajax update属性相同,但在数据表中选中某行时激活。我从来没有使用过它,所以我没有任何代码示例来分享。