title: how to get the selected cell in <p:dataTable primefaces?
body: <p>I want to get, if possible, the selected cell or colomne (id) of primefaces <code>&lt;p:dataTable</code> </p>
  
  <p>my table is like :</p>
  
  <pre><code>&lt;p:dataTable id="table" var="list" value="#{bean.list}" rowKey="#{list}" selectionMode="single" &gt;
      &lt;p:ajax event="rowSelect" listener="#{bean.onRowSelect}" /&gt;
      &lt;p:column headerText="Date" &gt;
          &lt;h:outputText  value="#{list.SDate}" /&gt;
      &lt;/p:column&gt;
      &lt;p:column headerText="Name" &gt;
          &lt;h:outputText value="#{list.IName}" /&gt;
      &lt;/p:column&gt;
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>with this method I can get the row selected (line) using <code>&lt;p:ajax event="rowSelect" listener="#{bean.onRowSelect}" /&gt;</code>
  but I can't get the selected colomn "<code>Date</code>" or "<code>Name</code>"</p>
  
  <p>onrowSelecte method is like :</p>
  
  <pre><code> public void onRowSelect(SelectEvent event)
          myObject obj = (myObject)event.getObject();
          //.......
   }
  </code></pre>