Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
Dynamic columns?
Forum Index -> DataTable
Author Message
bwarren


Joined: 03/20/2009 16:59:03
Messages: 2
Offline

I'm going for a similar effect to the tomahawk/richfaces/icefaces <columns> tag. Note: I'm using facelets.



It's ignoring the ui:repeat. Is there a different way I should be using to lay out columns at runtime? Basically I have a predefined set of columns on the left, and then some number of columns on the right that is defined by how many arrivals are in my data model.
marc
Simplica Team

Joined: 03/20/2009 19:31:04
Messages: 1
Offline

DataTable has a property - fixedColumnCount - for the purpose of fixing a number of left columns. You can find an example here:

http://www.simplica.com/demo-suite-release/index.jsf

Not sure why the repeat tag is not working, but you can try as an alternative binding the DataTable to a backing bean and programmatically adding the DataCells there.
adina_mihai
Simplica Team

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

This aproach you choose won't work, because e:datatable and ui:repeat components are not compatible. Bassically you don't need ui:repeat, if you are using datatable, because they do the same thing, but in different ways. The alternative you got from marc is the best approach in your case.
 
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.