title: DataTable row Selection not working
body: <p>I have a datatable</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p:dataTable id="db"
      value="#{notificationBox.notificationsList}"
      var="notificationForm" 
      rows="15"
      emptyMessage="${msgs.getMessage('table.empty.message')}"
      paginator="true" 
      paginatorPosition="bottom"
      rowKey="#{notificationForm}"
      selection="#{notificationBox.notification}" 
      paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} ( ${notificationBox.notificationsList.size()} ${msgs.getMessage('table.records')} )"
      selectionMode="single" 
      tableStyle="height:430px"&gt;
  
      //Rest of the code
  </code></pre>
  
  <p>Here If I am selecting any row, I am going for an ajax call (same as in primefaces instant row selection example). Ajax is inside the Datatable .</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p:ajax event="rowSelect" listener="#{notificationBox.onRowSelect}"   
      oncomplete="carDialog.show();" /&gt;
  </code></pre>
  
  <p>My Backing Bean class -</p>
  
  <pre><code>private List&lt;NotificationForm&gt; notificationsList;
  public NotificationForm notification;
  public void onRowSelect(SelectEvent event) {
      LOGGER.info("Here. +"+notification);
  }
  
  //Setter and Getters.
  </code></pre>
  
  <p>The problem is if I select any row, The "notification" is coming as null. I can not process further. Please help. Any alternate approach is also welcome.</p>
  
  <p>Edit:-</p>
  
  <p>My Managed Bean Scope -</p>
  
  <pre><code>&lt;managed-bean&gt;
      &lt;managed-bean-name&gt;notificationBox&lt;/managed-bean-name&gt;
      &lt;managed-bean-class&gt;com.comviva.workflow.ui.notification.NotificationBox&lt;/managed-bean-class&gt;
      &lt;managed-bean-scope&gt;view&lt;/managed-bean-scope&gt;
      &lt;managed-property&gt;
          &lt;property-name&gt;notificationDao&lt;/property-name&gt;
          &lt;value&gt;#{notificationDaoService}&lt;/value&gt;
      &lt;/managed-property&gt;
      &lt;managed-property&gt;
          &lt;property-name&gt;userInfoDao&lt;/property-name&gt;
          &lt;value&gt;#{userInfoDaoProxy}&lt;/value&gt;
      &lt;/managed-property&gt;
  &lt;/managed-bean&gt;
  </code></pre>