title: Error After Selecting dataTable
body: <p>When I make selection in dataTable it gives error below</p>
  
  <pre><code>[javax.faces.FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled or you need to define rowKey attribute]]
  </code></pre>
  
  <p>But in my dataTable rowKey attribute is already define and I checked it's value is unique. What could be the possible reason I am getting this error</p>
  
  <p>DataTable code is as below</p>
  
  <pre><code>&lt;p:dataTable id="scenarioDataTableId" var="scenarioDataTable" value="#{myBean.scenarioApplicationColumnBOList}" tableStyle="width:90%" rowKey="scenarioDataTable.scenarioApplicationColumnId" selection="#{myBean.selectedScenarioApplicationColumnRow}" &gt;
      &lt;f:facet name="header"&gt;Database Columns That will be updated in this Scenario&lt;/f:facet&gt;
  
      &lt;p:ajax event="rowSelectRadio" listener="#{myBean.editSelectedScenarioApplicationColumnAction}"&gt;&lt;/p:ajax&gt;
      &lt;p:column selectionMode="single" style="width:10%" /&gt; 
  
      &lt;p:column id="Id" headerText="Id" &gt;
                              #{scenarioDataTable.scenarioApplicationColumnId}
      &lt;/p:column&gt;
  
      &lt;p:column id="scenarioId" headerText="Scenario Id" &gt;
                              #{scenarioDataTable.scenarioId}
      &lt;/p:column&gt;
  
      &lt;p:column id="appId" headerText="Application Column Id" &gt;
                              #{scenarioDataTable.applicationColumnId}
      &lt;/p:column&gt;
  
      &lt;p:column id="tableNameId" headerText="Table Name" &gt;
                              #{scenarioDataTable.tableName}
      &lt;/p:column&gt;
  
      &lt;p:column id="columnNameId" headerText="Column Name" &gt;
                              #{scenarioDataTable.columnName}
      &lt;/p:column&gt;
  
      &lt;p:column id="columnValidValueId" headerText="Column Valid Value" &gt;
                              #{scenarioDataTable.columnValidValue}
      &lt;/p:column&gt;
  
      &lt;p:column id="dbActionId" headerText="DB Action" &gt;
                              #{scenarioDataTable.dbAction}
      &lt;/p:column&gt;
  
      &lt;f:facet name="footer"&gt;
          &lt;p:commandButton value="Add New Row" action="#{myBean.openDialogScenarioUpdateColumn}" oncomplete="dialogScenarioUpdateColumn.show()" rendered="#{myBean.scenarioInputFieldRendered}"&gt;&lt;/p:commandButton&gt;    
          &lt;p:spacer width="20" &gt;&lt;/p:spacer&gt;
          &lt;p:commandButton id="editButton" value="Edit" action="#{myBean.editSelectedScenarioApplicationColumnAction}" update=":formSelectCriteria:ScenarioMainPanel" &gt;&lt;/p:commandButton&gt;
          &lt;p:spacer width="20" &gt;&lt;/p:spacer&gt;
          &lt;p:commandButton id="deleteButton" value="Delete"&gt;&lt;/p:commandButton&gt;
      &lt;/f:facet&gt;
  
  &lt;/p:dataTable&gt;
  </code></pre>