It is like:
Code: Select all
<p:dataTable id="perfis" var="registro" value="#{usuariosController.usuario.perfis}" paginator="true" rows="2" emptyMessage="${bundle.vazio}">
<p:column headerText="#{bundle.perfil}" sortBy="#{registro.perfil}" filterBy="#{registro.perfil}" filterStyleClass="dataTexts">
<h:outputText value="#{registro.perfil}" />
</p:column>
<p:column>
<p:commandButton image="ui-icon ui-icon-close" title="#{bundle.remover}" immediate="true" action="#{usuariosController.removerPerfil(registro)}" update="perfis"/>
</p:column>
</p:dataTable>
It is removing, List has a one registry less, but datatable is not updating, the awkward is that then I click on a pagination and came back, like from One to Page two and come back, the datatable is updated.
Did somethind changed on the updating of datatable?
Thank a lot