Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
creating a datatable in backing bean
Forum Index -> DataTable
Author Message
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

I have a page in which I run a query and return the results to a dataTable. Each row when selected displays a gridPanel in which the user can enter query information and basically run a sql query related to that row. I need each of these results to be displayed in a e:dataTable. I have tried to create the table and set the wrapped model on the table but that renders no rows. I have tried to create the table without setting the model and that renders no rows. I have tried to set the model create the TableRows and cells using the getter signature so sorting works but the gives me a unique error. When I create the cell ID with a unique Id I get duplicated rows rendered, if 9 rows were returned and set on the model and 9 rows added in creating the cells, 81 rows get rendered. See RouteCapacity.getLegCapacity, RouteCapacity.addCapacityTables, RouteLeg.createCapTable()
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

Please disregard. I figured it out. To maniplute the settings on the column template you only need to define one row in the backing bean and rather than setting a model on the table, use the setData method.
 
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.