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 40638.0 miles 44220$Explorer 56830.0 miles 49082$Maxima 61047.0 miles 22828$Camry 32953.0 miles 20567$Yukon 37358.0 miles 16181$G35 24426.0 miles 28524$
Corvette 45695.0 miles 36393$Explorer 6752.0 miles 24064$Maxima 7011.0 miles 29220$Camry 72115.0 miles 44250$Yukon 48359.0 miles 21944$G35 20341.0 miles 49918$
Corvette 71658.0 miles 49451$Explorer 19640.0 miles 54190$Maxima 42250.0 miles 40466$Camry 71928.0 miles 44342$Yukon 38721.0 miles 31768$G35 36240.0 miles 37794$
Corvette 35322.0 miles 28230$Explorer 20485.0 miles 18346$Maxima 65125.0 miles 18469$Camry 62080.0 miles 16893$Yukon 56974.0 miles 49428$G35 13423.0 miles 27970$
Corvette 74725.0 miles 44857$Explorer 39292.0 miles 15036$Maxima 66828.0 miles 38309$Camry 58779.0 miles 53222$Yukon 30584.0 miles 48931$G35 52591.0 miles 15536$
Corvette 73175.0 miles 19098$Explorer 69871.0 miles 43957$Maxima 36661.0 miles 20047$Camry 35860.0 miles 19676$Yukon 40357.0 miles 46700$G35 35548.0 miles 20129$
Corvette 27964.0 miles 32837$Explorer 41106.0 miles 22155$Maxima 15040.0 miles 47061$Camry 29015.0 miles 44124$Yukon 45144.0 miles 17463$G35 62874.0 miles 34234$
Corvette 58921.0 miles 41879$Explorer 14904.0 miles 46695$Maxima 48642.0 miles 19365$Camry 16026.0 miles 45500$Yukon 12579.0 miles 25716$G35 21641.0 miles 51927$
Corvette 27727.0 miles 39689$Explorer 65760.0 miles 42062$Maxima 40486.0 miles 20632$Camry 72149.0 miles 53030$Yukon 5599.0 miles 38161$G35 38533.0 miles 38041$

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