JSF Datatable - how to select row on button push in row
I would like a button in a Primefaces DataTable row to show a dialog showing more information about the object in the row. When I click anywhere in the row not in the button, the row is selected. However, when I press the button, the row is not selected. How may I make the row that the button is in the selected row? This example from the Primefaces showcase sets selectedCar in the backing bean and displays a dialog containing data from the row on clicking a button in the row but leaves the row unselected: <p:dataTable id="basicDT" var="car" value="#{dtSelectionView.cars1}"> <f:facet name="head
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.