title: Datatable does not update after successful ajax call
body: <p>I have a data table. Each row of the table has a <code>commandButton</code> called <em>'Remove'</em>, which is supposed to remove that row from the model and the view and perform an update in-place. As a footer, I have another <code>commandButton</code> called <em>'Remove every row'</em>.</p>
  
  <p>The last button works. I click on it, every row is removed from the model (i.e the <code>ArrayList</code> containing the elements becomes empty) and the <code>dataTable</code> and <code>footer facet</code> is re-rendered (or updated) in the view.</p>
  
  <p>On the other hand, when I click a button on one of the rows, to remove it, it partially works. The corresponding element is removed from the model but the view is not updated. That row is still there in the <code>dataTable</code> and the <code>footer facet</code> hasn't changed.</p>
  
  <p>I have the following piece of code in my <code>users.xhtml</code>.</p>
  
  <pre><code>&lt;f:metadata&gt;
      &lt;f:viewParam name="id" value="#{users.id}" /&gt;
      &lt;f:event type="preRenderView" listener="#{users.init}" /&gt;
  &lt;/f:metadata&gt;
  
  ...
  
  &lt;h:form id="usersForm"&gt;
      &lt;p:outputPanel&gt;    
          &lt;p:dataTable id="userTable" value="#{users.user.friendList}" var="friend"&gt;
              &lt;p:column&gt;
                  &lt;h:outputText value="#{friend.name}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;p:commandButton action="#{users.user.removeFriend(friend)}"
                      ajax="true"
                      update="userTable somethingElse" process="@this"
                      onerror="errorDialog.show();"
                      icon="ui-icon-delete"
                      title="delete user"&gt;
                  &lt;/p:commandButton&gt;
              &lt;/p:column&gt;
  
              &lt;f:facet id="somethingElse" name="footer"&gt;  
                      aye: ${users.user.xxx}
              &lt;/f:facet&gt;
          &lt;/p:dataTable&gt;
  
      &lt;/p:outputPanel&gt;
  
      &lt;p:commandButton action="#{users.user.removeAllFriends()}" ajax="true"
                  update="userTable somethingElse"
                  process="@this"
                  icon="ui-icon-close"
                  value="delete all friends?"&gt;
      &lt;/p:commandButton&gt;
  
  
  &lt;/h:form&gt;
  </code></pre>
  
  <p>So, what do you think is the problem here?</p>
  
  <p>I'm using JSF 2.0 and Primefaces 3.0</p>