PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
Tag Information

The tag allows dynamic columns functionality in a rich:dataTable. It is used like a UIData component which iterates through a data model to create columns.

The component uses a standard value/var pair of attributes to provide binding to data model and request scoped variable for iteration through this data model.

The next simple example shows you a simple use-case where ten types of cars are created and a list of models with prices is generated for each type of car. In the dataTable cars are grouped by type in a separate columns.

DataTable Columns example
Cars Available
Corvette 33246.0 miles 19573$Explorer 32462.0 miles 16319$Maxima 74809.0 miles 25912$Camry 12865.0 miles 27646$Yukon 15743.0 miles 26133$G35 13247.0 miles 36163$
Corvette 62146.0 miles 27055$Explorer 25488.0 miles 46459$Maxima 19760.0 miles 36300$Camry 51937.0 miles 18041$Yukon 48577.0 miles 33351$G35 61362.0 miles 38605$
Corvette 23962.0 miles 47091$Explorer 73110.0 miles 39242$Maxima 29022.0 miles 43094$Camry 70046.0 miles 31269$Yukon 42132.0 miles 53946$G35 36763.0 miles 35007$
Corvette 76917.0 miles 19119$Explorer 33484.0 miles 45788$Maxima 55850.0 miles 24068$Camry 53532.0 miles 27102$Yukon 12552.0 miles 31850$G35 69760.0 miles 49725$
Corvette 36299.0 miles 50907$Explorer 59185.0 miles 26080$Maxima 26284.0 miles 52797$Camry 22556.0 miles 22407$Yukon 55082.0 miles 33184$G35 36820.0 miles 23486$
Corvette 33401.0 miles 51966$Explorer 45067.0 miles 16898$Maxima 30866.0 miles 31022$Camry 57409.0 miles 40948$Yukon 42001.0 miles 44512$G35 15743.0 miles 43735$
Corvette 44090.0 miles 52200$Explorer 47239.0 miles 26642$Maxima 20779.0 miles 29632$Camry 16449.0 miles 15403$Yukon 76067.0 miles 20207$G35 29206.0 miles 49721$
Corvette 15609.0 miles 50063$Explorer 59517.0 miles 49012$Maxima 21526.0 miles 50176$Camry 34296.0 miles 37163$Yukon 54362.0 miles 28728$G35 35700.0 miles 32750$
Corvette 17028.0 miles 54644$Explorer 46129.0 miles 25641$Maxima 74435.0 miles 23237$Camry 30252.0 miles 40379$Yukon 41874.0 miles 50419$G35 23748.0 miles 40523$

View Source

Additionally as you see Sorting Feature could be added to this component in the same way as for simple rich:column.

In this example every column provides sorting by car prices

RichFaces Wiki RichFaces Project Site