3
錶行我有一個這樣的表:取消選擇在PrimeFaces
<p:dataTable id="table" selectionMode="single">
...
<p:ajax event="rowSelect" listener="#{myBean.onRowSelect}" update="someStuff"/>
<p:ajax event="rowUnselect" listener="#{myBean.onRowUnselect}" update="otherStuff"/>
</p:dataTable>
有誰知道如何觸發對UI的rowUnselect
事件?
另一件事,selectionMode
屬性的可能值是什麼?他們似乎沒有在文檔中。
感謝,
但是,如果selectionMode是單個,並且您有一個radioButton列,則不能通過Ctrl +單擊取消選擇radioButton。 – Pino