title: RowSelect event p:dataTable
body: <p>Need to capture the rowSelect event of a dataTable having checkbox based row selection.
  The code is as follows:</p>
  
  <pre><code>&lt;p:ajax event="rowSelect" listener="#{articleBean.onRowSelect}"
                      oncomplete="articleBean.onSelection" /&gt;
  &lt;p:ajax event="rowUnselect" listener="#{articleBean.onRowUnselect}"
                      oncomplete="articleBean.onSelection" /&gt;
  &lt;p:column id="name" headerText="Select" selectionMode="multiple"
                      style="width:18px" /&gt;
  </code></pre>
  
  <p>I'm unable to understand the behavior. When I click checkbox for the first time, the method "onRowSelect" is getting called. When I unselect, "onRowUnselect" is not getting called. And also, the "onRowSelect" method is called just once for the grid, as in, if I click any other checkbox, the event is not getting triggered. Am I missing out anything? Not able to understand this behavior.</p>