I'm trying to use the "multiple select" in a dataTable
. My data model to fill the dataTable
is an ArrayList<ArrayList>
. My problem is that the selectEvent
variable is consistently null
and no data is available in the bean.
XHTML:
<p:dataTable id="dt_notselectedContent"
var="notselectedContent"
value="#{verwaltung.alNotSelectedContent}"
rows="5"
rowIndexVar="rowIndex"
selectionMode="multiple"
selection="#{bean.alContent}"
rowKey="#{bean.alNotSelectedContent.get(rowIndex).get(0)}"
paginator="true"
paginatorTemplate="{CurrentPageReport} {RowsPerPageDropdown}"
rowsPerPageTemplate="5,10"
rendered="#{not empty verwaltung.alNotSelectedContentForLinkedList}"
style="width: auto; height: auto">
<p:ajax event="rowSelect" listener="#{verwaltung_store.onRowSelect(event)}" />