When I click on the rowToggler column, thebasicViex.getCars will be call 8 times before a rowToggle method is called (why 8 ?? but this is not the question).
Code: Select all
<p:dataTable var="car" value="#{dtBasicView.cars}">
<f:facet name="header">
Expand rows to see detailed information
</f:facet>
[b] <p:ajax event="rowToggle" listener="#{dtBasicView.onRowToggle}" />[/b]
<p:column style="width:16px">
<p:rowToggler />
...
Any help appreciated dear PF team !