is this possible to configure SelectTable to behave like a DataTable, i.e. disable selecting feature? I have a screen which displays the data in a table and in some cases allows to select rows but in other does not. In the latter I would like to have the table behave and look exactly as a standard dataTable component.
Ideally I would like to have a view:
<e:selectTable selectionMode="#{bean.isSelectionAllowed? \"none\" : \"row\" }" binding="#{bean.table}">
<!-- definitions of columns here -->
</e:selectTable>
I now I can achieve the result by using two components rendered alternatively:
<e:selectTable rendered="#{bean.isSelectionAllowed}" binding="#{bean.tableSelectable}">
<!-- definitions of columns here -->
</e:selectTable>
<e:dataTable rendered="#{!(bean.isSelectionAllowed)}" binding="#{bean.tableNonSelectable}">
<!-- definitions of columns here -->
</e:dataTable>
but in that way I am breaking the DRY principle and have to control two separate bound table components.
In the current version of selectTable, selectionMode can't be "none", so your desired behavior can't be achieved. SelectTable was designed especially for selection.
Yes, we will add this feature for SelectTable, but we can't do this earlier than a month, because we have to do some other stuff with higher priority. Thank you for your interest in our components!