title: Primefaces commandLink only updates datable after clicking it twice
body: <p>The following code is about a table, where I can add (commandButton) or remove (commandLink) rows. Both buttons are working and calling the correspondent bean methods. But while for each click in the add button will update the table adding one row instantly, for the remove button, I have to click it twice to get the row removed. Even though the row is not removed the first time, the bean method is being called. What should I do? Thanks!</p>
  
  <pre><code>    &lt;h:form id="form"&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;h:panelGrid columns="2" width="100%"&gt;
                          &lt;p:dataTable id="univertitiesTable" value="#{universityBean.universityList}" var="university"
                              editable="true" editMode="cell" style="align:center;" &gt;
  
                              &lt;p:column headerText="Name" style="width:80px" &gt;
                                  &lt;p:inputText value="#{university.name}" style="width:25px;" id="nameField"  label="name"  /&gt;
                              &lt;/p:column&gt;
  
                              &lt;p:column headerText="" style="width:20px; "&gt;
                                  &lt;p:commandLink actionListener="#{universityBean.deleteUniversity}" update="univertitiesTable" id="removeButton" ajax="true"&gt;
                                      &lt;h:graphicImage value="/resources/icones/delete.gif" /&gt;
                                      &lt;f:setPropertyActionListener value="#{university}"
                                          target="#{universityBean.university}" /&gt;
                                  &lt;/p:commandLink&gt; 
                              &lt;/p:column&gt;
                          &lt;/p:dataTable&gt;
  
                          &lt;p:commandButton value="+" update="univertitiesTable" id="addButton" ajax="true"
                              actionListener="#{universityBean.addUniversity}"
                              styleClass="ui-priority-primary"  /&gt;
  
                      &lt;/h:panelGrid&gt;                  
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td colspan="2" align="center"&gt;
                      &lt;h:commandButton id="save" value="Save"
                          action="#{universityBean.save}" binding="#{save}" /&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;    
      &lt;/h:form&gt;
  </code></pre>