I have a dataTable something like the code above, as you can see, im using the event rowSelectedcheckBox, there is any way to know the row that was clicked and based on that information disabled the row completely?
<p:dataTable id="tblTipoCarteraGeneric" style="text-align:left;"
value="#{alertasPredefinidasModel.tipoCarteraDTOs}"
var="tipoCartera"
rows="15" paginator="true"
emptyMessage="empty"
paginatorAlwaysVisible="true"
paginatorPosition="bottom"
selection="#{alertasPredefinidasModel.elementoSeleccionado.tipoCarteraDTOs}"
rowKey="#{tipoCartera.tipoCarteraDTO.tipocarteraID}"
rendered="#{alertasPredefinidasModel.isTipoCartera()}">
<p:ajax event="rowSelectCheckbox" update=":form:tblTipoCarteraGeneric, :form:messages"
listener="#{alertasPredefinidasController.onRowSelected}"/>
<p:ajax event="rowUnselectCheckbox" update=":form:tblTipoCarteraGeneric, :form:messages"
listener="#{alertasPredefinidasController.onRowUnselected}"/>
<p:column selectionMode="multiple" styleClass="selection-column no-all"
disabledSelection="#{alertasPredefinidasModel.modoDetalle}"/>
<p:column headerText="Tipo de cartera" styleClass="wrappedText" >
<h:outputText id="inTxtCol1" value="#{tipoCartera.tipoCarteraDTO.nombre}" />
</p:column>
<p:column headerText="Valor del abono" styleClass="wrappedText" rendered="#{alertasPredefinidasModel.isTipoCarteraConValorOpcion2()}">
<h:inputText id="inTxtCol2" value="#{tipoCartera.parametro1}" style="width:100%"
disabled="#{alertasPredefinidasModel.modoDetalle}"/>
<pe:tooltip myPosition="top center" atPosition="bottom right" for="inTxtCol2"
value="#{tooltips.obtainToolTip('parametrizarAlertasPredefinidas', 'inTxtCol2', 'es', 'itac.SIT-Core-Middleware-Sarlaft-WAR.tooltip')} "/>
</p:column>
<p:column headerText="Porcentaje superior al valor del abono" styleClass="wrappedText" rendered="#{alertasPredefinidasModel.isTipoCarteraConValorOpcion2()}">
<h:inputText id="inTxtCol3" value="#{tipoCartera.parametro2}" style="width:100%"
disabled="#{alertasPredefinidasModel.modoDetalle}"/>
<pe:tooltip myPosition="top center" atPosition="bottom right" for="inTxtCol3"
value="#{tooltips.obtainToolTip('parametrizarAlertasPredefinidas', 'inTxtCol3', 'es', 'itac.SIT-Core-Middleware-Sarlaft-WAR.tooltip')} "/>
</p:column>
</p:dataTable>