title: p:commandLink in p:dataTable does not invoke action on first click, but only on second click
body: <p>I'm using primefaces commandLink in p:datatable and when user clicks on link. It's supposed to navigate to another page including specific info of object that is chosen from table. I don't use any ajax tags. Problem is when first time clicks on link it doesn't invoke action actually nothing happens and on second click it works. Here is my code :</p>
  
  <p>JSF with Datatable</p>
  
  <pre><code>&lt;h:form&gt;
          &lt;h:outputText value="Nothing is found" rendered="#{searchView.citizenSearchList.rowCount==0}"/&gt;
  
          &lt;p:dataTable var="cust" value="#{searchView.citizenSearchList}" dynamic ="true" paginator="true" rows="5" paginatorAlwaysVisible="false" style="width: 700"&gt;
              &lt;p:column&gt;
                  &lt;f:facet name ="header"&gt;
                      &lt;h:outputText value="name "/&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{cust.name}"/&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;f:facet name ="header"&gt;
                      &lt;h:outputText value="lastname "/&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{cust.citizenList.get(0).lastname}"/&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;f:facet name ="header"&gt;
                      &lt;h:outputText value="Id "/&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{cust.registernumber}"/&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;f:facet name ="header"&gt;
  
                  &lt;/f:facet&gt;
                  &lt;p:commandLink value="See" action="#{customerView.prepareCitizenView()}"/&gt;
              &lt;/p:column&gt;
          &lt;/p:dataTable&gt;
  
      &lt;/h:form&gt;
  </code></pre>
  
  <p>ManagedBean: customerView's action method</p>
  
  <pre><code>@ManagedProperty(...)  
  SearchView searchview;
  public String prepareCitizenView(){
      this.customer = (Customer) searchview.citizenSearchResultList.getRowData();
      if(this.customer != null)
          return "citizeninfo";
      else
          FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, "no data.", "no data"));
          return null;
  
  
  }
  </code></pre>
  
  <p>ManagedBean: searchView</p>
  
  <pre><code>DataModel citizenSearchResultList;
  
  public DataModel getCitizenSearchResultList() {
      return citizenSearchResultList;
  }
  </code></pre>