title: Update single row in JSF / Primefaces datatable using AJAX
body: <p>How could I update a single row in a p:datatable when using AJAX?</p>
  
  <p>I don't want to update the whole datatable because it has a lot of rows and it's going to take some time..</p>
  
  <p>My layout:</p>
  
  <pre><code>&lt;h:form id="visitForm"&gt;
          &lt;p:dataTable id="visitTable" var="visit" value="#{visitBean.findAllVisits()}"&gt;
  
              &lt;p:column headerText="${msgs['email']}"
                  &lt;h:outputText value="#{visit.contactDetail.email}"/&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="${msgs['clearance']}" id="clearance"&gt;
                  &lt;p:commandButton value="${msgs['clearance.ok']}"  actionListener="#{visitBean.makeClearanceNotOk(visit)}"/&gt;
              &lt;/p:column&gt;
          &lt;/p:dataTable&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>I've tried out some things like update = "clearance" etc but it doesn't seem to work.</p>
  
  <p>I'm using JSF 2.1 and Primefaces 5.2</p>