Datatable updating itself

UI Components for JSF
Post Reply
lmmoreira
Posts: 60
Joined: 08 Jul 2010, 14:15

23 Jun 2011, 20:27

Hi there I have a code that was working really good before the last release of primefaces 3.0 M2.

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>

The method removerPerfil remove a item from the List, and updates the perfis 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
Tomcat 7 + jsf-api - 2.0.3-SNAPSHOT + Primefaces 2.1

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

26 Jun 2011, 22:08

With before the last release of 3.0M2 you mean the previous snapshot of this release? Or something else..

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests