title: How to detect row selection in Primefaces Datatable?
body: <p>I use Prime Faces 6.2 to construct checkboxed column. Have this sample:</p>
  
  <pre><code>&lt;p:dataTable id="List"
                   value="#{tickets}"
                   lazy="true"
                   paginator="true"
                   paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
                   currentPageReportTemplate="{startRecord}-{endRecord} из {totalRecords}"
                   rows="20"
                   rowKey="#{ticket.id}"
                   selection="#{ticketForm.abstractMTSBUExportTickets}"
                   var="ticket"
                   emptyMessage="Записи в данной категории отсутствуют"&gt;
  
  &lt;p:column selectionMode="multiple" style="width:40px; text-align:center"&gt;
      &lt;!-- &lt;p:ajax event="click" listener="#{form.abstractMTSBUExportTickets}" /&gt; --&gt; // first try
      &lt;!-- &lt;p:commandLink id="select" action="doSome" /&gt; --&gt; // second try
  &lt;/p:column&gt;
  </code></pre>
  
  <p>The purpose to use ajax is for making some button on page visible when at least one checkbox selected.
  Firstly, I tried to insert p:ajax tag into column tag but got exception:</p>
  
  <pre><code> &lt;p:ajax&gt; Unable to attach behavior to non-ClientBehaviorHolder parent
  </code></pre>
  
  <p>More obviouse way was to insert command link into but it simply did nothing.
  So, is there any practice to do this? Thanks for answers in advance.</p>