I have the following: a <p:dataTable> with rowExpansion (but without selection and pagination) in which another <p:dataTable> is placed.
The inner dataTable looks like this:
Code: Select all
<p:dataTable value="#{employeeBean.allEmployees}" var="e"
paginatorAlwaysVisible="false" paginator="true" rows="5"
paginatorTemplate="{PageLinks}" paginatorPosition="bottom"
selection="#{list.currentEmployee}" selectionMode="single"
onRowSelectUpdate="detailPanel"
rowSelectListener="#{list.makeAddEmployeeButtonVisible}">
This works fine - but only in the first paginator-page. When selecting a row on the second page the selection is not transmitted into the bean, selectionListener is called anyway.
There is a problems with filtering too. Selecting a row in the filtered table, the panel is filled with information that belong to the row that would have this rowIndex when the table isn't filtered.
These problems only exist in nested tables.
Can someone reproduce this or did I something wrong?