2011-08-13 29 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屬性相同,但在數據表中選中某行時激活。我從來沒有使用過它,所以我沒有任何代碼示例來分享。