title: How to set a default selection on DataTable?
body: <p>I have a Java application and I'm using Hibernate, Primefaces, JSF, Jquery, Twitterbootstrap and Spring.</p>
  
  <p>I have many <strong>DataTables</strong> in my application.</p>
  
  <p>I'd like that the <strong>DataTable</strong> has a default selected item.</p>
  
  <p>Does the primefaces offer any way to do it ? 
  Here's how it look like nowadays:</p>
  
  <p><img src="https://i.stack.imgur.com/qevmf.png" alt="enter image description here"></p>
  
  <p>Here what I'd like to have: 
  <img src="https://i.stack.imgur.com/RKp9q.png" alt="enter image description here"></p>
  
  <p>Here's the <strong>DataTable</strong>:</p>
  
  <pre><code>        &lt;!-- Tabela --&gt;
          &lt;p:dataTable 
                       id="dataTableListaCliente"
                       var="cliente" 
                       value="#{clienteBean.lista}" 
                       paginator="true"
                       widgetVar="clientesTable"
                       selection="#{clienteBean.cliente}" 
                       selectionMode="single"
                       filteredValue="#{clienteBean.lista}"
                       style="width: 1100px;"
                       rowsPerPageTemplate="6,10,15,20"   
                       rowKey="#{cliente.id}"
                       paginatorPosition="bottom" 
                       emptyMessage="Nenhum registro encontrado"
                       paginatorTemplate="{CurrentPageReport}  {FirstPageLink} 
                                          {PreviousPageLink} {PageLinks} 
                                          {NextPageLink} {LastPageLink} 
                                          {RowsPerPageDropdown}"
                       rows="6"&gt;
  
             &lt;!-- Duplo click em um registro da tabela --&gt;
  
  
            &lt;f:facet name="header"&gt;  
              &lt;p:outputPanel&gt;  
                &lt;h:outputText value="Pesquisa Geral:" /&gt;  
                &lt;p:inputText id="globalFilter"
                             onkeyup="clientesTable.filter()"
                             style="width:500px" /&gt;  
              &lt;/p:outputPanel&gt;  
            &lt;/f:facet&gt;  
  
             &lt;p:ajax event="rowDblselect"
                  oncomplete="document.getElementById('formLista:buttonSelecionar').click();" /&gt;
  
              &lt;p:column 
                        sortBy="#{cliente.id}"
                        filterBy="#{cliente.id}"
                        filterMatchMode="contains"
                        style="width: 20px;"
                        headerText="Id"
                        &gt;
                  #{cliente.id}
              &lt;/p:column&gt;
  
              &lt;p:column
                        sortBy="#{cliente.nome}"
                        filterBy="#{cliente.nome}"
                        filterMatchMode="contains"
                        headerText="Nome"&gt;
                  #{cliente.nome}
              &lt;/p:column&gt;
  
              &lt;p:column
                        sortBy="#{cliente.endereco}"
                        filterBy="#{cliente.endereco}"
                        filterMatchMode="contains"
                        headerText="Endereço"
                        &gt;
                  #{cliente.endereco}
              &lt;/p:column&gt;
  
              &lt;p:column filterBy="#{cliente.cidade}"
                        filterMatchMode="contains"
                        headerText="Cidade"&gt;
                  #{cliente.cidade}
              &lt;/p:column&gt;
  
              &lt;p:column filterBy="#{cliente.CNPJ}"
                        filterMatchMode="contains"
                        headerText="CNPJ"&gt;
                  #{cliente.CNPJ}
              &lt;/p:column&gt;
  
              &lt;p:column filterBy="#{cliente.CPF}"
                        filterMatchMode="contains"
                        headerText="CPF"&gt;
                  #{cliente.CPF}
              &lt;/p:column&gt;
  
              &lt;p:column filterBy="#{cliente.inscricaoEstadual}"
                        filterMatchMode="contains"
                        headerText="Inscrição"&gt;
                  #{cliente.inscricaoEstadual}
              &lt;/p:column&gt;
  
  
          &lt;/p:dataTable&gt;
      &lt;/h:form&gt;
  </code></pre>