Primefaces RowToggle - How to differentiate between Row Expansion and Row Collapse?
问题 I am using Prmefaces 3.5. I use the RowToggler in a datatable. Whenever the RowToggle button is clicked, I use to do some database access operations and display a grid with the the accessed data. Whenever the toggle button is clicked the below listener is called, in which the operations are done <p:ajax event="rowToggle" listener="#{controller.onRowToggle}" But the problem lies in calling this method. Not only when the row is expanded, this method is called, but also when the row is collapsed