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 15655.0 miles 48727$Explorer 59412.0 miles 43951$Maxima 65013.0 miles 47563$Camry 7515.0 miles 24084$Yukon 76864.0 miles 18403$G35 62814.0 miles 38376$
Corvette 27256.0 miles 54303$Explorer 41572.0 miles 20015$Maxima 57399.0 miles 28821$Camry 28323.0 miles 21608$Yukon 42263.0 miles 51168$G35 58063.0 miles 37802$
Corvette 45566.0 miles 31017$Explorer 57037.0 miles 51040$Maxima 74405.0 miles 44864$Camry 43067.0 miles 53531$Yukon 11847.0 miles 41010$G35 55565.0 miles 22241$
Corvette 45353.0 miles 44936$Explorer 7977.0 miles 46095$Maxima 71579.0 miles 17364$Camry 19708.0 miles 29393$Yukon 63279.0 miles 19045$G35 11537.0 miles 50337$
Corvette 33191.0 miles 20272$Explorer 54118.0 miles 42694$Maxima 49320.0 miles 17335$Camry 61817.0 miles 18616$Yukon 10041.0 miles 16739$G35 30659.0 miles 29878$
Corvette 79534.0 miles 39353$Explorer 9439.0 miles 16847$Maxima 18242.0 miles 33859$Camry 57401.0 miles 17694$Yukon 41886.0 miles 43204$G35 34126.0 miles 27920$
Corvette 44029.0 miles 50743$Explorer 8347.0 miles 48466$Maxima 22369.0 miles 51050$Camry 35736.0 miles 42598$Yukon 63418.0 miles 20616$G35 70784.0 miles 34681$
Corvette 57041.0 miles 53782$Explorer 40267.0 miles 25091$Maxima 70664.0 miles 16034$Camry 26735.0 miles 39013$Yukon 25146.0 miles 25368$G35 73512.0 miles 23027$
Corvette 67220.0 miles 45635$Explorer 65565.0 miles 42594$Maxima 7184.0 miles 22095$Camry 65628.0 miles 29417$Yukon 28551.0 miles 16763$G35 55643.0 miles 50607$


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