Code: Select all
<p:dataTable id="datalist" value="#{eqController.getItems(1)}" var="eq"
selectionMode="single" selection="#{eqController.selected}"
rowKey="#{eq.id}">
<p:ajax event="rowDblselect" oncomplete="document.getElementById('acceptButton').click();"/>
.......
<p:button id="acceptButton" value="#{bundle.est_aceptar}" icon="fa fa-home white Fs16 icon-ok" outcome="est_iniciar_2" disabled="#{empty eqController.selected}" />
</p:dataTable>