PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 26900.0 miles 35725$Explorer 26410.0 miles 30464$Maxima 50270.0 miles 53381$Camry 73198.0 miles 15742$Yukon 5415.0 miles 16877$G35 78196.0 miles 52831$
Corvette 65453.0 miles 25321$Explorer 73687.0 miles 43378$Maxima 32789.0 miles 52882$Camry 35108.0 miles 22849$Yukon 9420.0 miles 24219$G35 21663.0 miles 26525$
Corvette 61823.0 miles 48258$Explorer 8316.0 miles 19154$Maxima 53094.0 miles 39255$Camry 16485.0 miles 27588$Yukon 27516.0 miles 17793$G35 5343.0 miles 17262$
Corvette 8989.0 miles 39604$Explorer 65729.0 miles 22807$Maxima 16372.0 miles 30977$Camry 65117.0 miles 51299$Yukon 41113.0 miles 35798$G35 5450.0 miles 38905$
Corvette 62203.0 miles 22589$Explorer 60036.0 miles 39246$Maxima 19765.0 miles 20574$Camry 31538.0 miles 34639$Yukon 44984.0 miles 52413$G35 11062.0 miles 33824$
Corvette 47560.0 miles 15086$Explorer 49389.0 miles 34454$Maxima 30792.0 miles 38461$Camry 48588.0 miles 18376$Yukon 16688.0 miles 43262$G35 56507.0 miles 52954$
Corvette 15932.0 miles 40647$Explorer 73384.0 miles 48504$Maxima 45109.0 miles 37364$Camry 41057.0 miles 31340$Yukon 33949.0 miles 29877$G35 27149.0 miles 30887$
Corvette 50102.0 miles 31210$Explorer 35203.0 miles 21974$Maxima 78979.0 miles 40971$Camry 31786.0 miles 52310$Yukon 45772.0 miles 49692$G35 69920.0 miles 19768$
Corvette 51982.0 miles 39445$Explorer 43921.0 miles 44222$Maxima 9420.0 miles 20713$Camry 44895.0 miles 42365$Yukon 55298.0 miles 24710$G35 58080.0 miles 18020$


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