0
I’m using the component p:dataTable
of primefaces
with selectionMode="single"
using RadioButton
as a selection.
I would like when selecting a table row to update my label with the value of the selected profile, but this does not occur.
<p:dataTable
id="gridControleAcesso"
var="perfil" reflow="true"
rowIndexVar="index"
value="#{controleDeAcessoController.perfis}"
selection="#{controleDeAcessoController.perfilSelecionado}"
rowKey="#{perfil.id}"
disabledSelection="#{controleDeAcessoController.usuario == null}"
update="comboPrestadoresDeServicos"
imediate="true"
>
<p:ajax event="rowSelect" update="labelTest" process="@form" imediate="true" />
<p:column selectionMode="single" headerText="Acesso" >
</p:column>
<p:column headerText="Perfil" >
<h:outputText value="#{perfil.nome}" />
</p:column>
</p:dataTable>
<h:outputText id="labelTest" value="a:: #{controleDeAcessoController.perfilSelecionado.nome}" />
Thanks for the, answer, but unfortunately the selectors did not solve my problem
– Marciano Machado