I'm using a data table like this
<p:dataTable id="runwaysTable" var="runway"
value="#{of:setToList(airportHandler.theAirport.runways)}"
selection="#{airportHandler.selectedRunway}" selectionMode="single"
rowKey="#{runway.id}">
runways
is a Set (result of Hibernate mapping).
So i'm using OmniFaces library to convert it to a list in order to work inside the datatable.
I added a rowKey to the datatable,
but I'm still having javax.faces.FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.
I thought that using a rowKey was a good way not to implement SelectableDataModel (which I don't really want to do)