Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
SelectTable as a DataTable
Forum Index -> DataTable
Author Message
swiety


Joined: 10/16/2007 03:37:38
Messages: 5
Offline

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.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

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.
swiety


Joined: 10/16/2007 03:37:38
Messages: 5
Offline

Thanks a lot Adina. Do you plan to add such a feature? And when if so? I would find it very useful.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

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!
 
Forum Index -> DataTable
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.