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 10688.0 miles 25849$Explorer 33223.0 miles 21604$Maxima 41678.0 miles 43961$Camry 26688.0 miles 19971$Yukon 29522.0 miles 49707$G35 13376.0 miles 44591$
Corvette 79982.0 miles 37337$Explorer 73892.0 miles 51825$Maxima 24130.0 miles 39040$Camry 34441.0 miles 22090$Yukon 14484.0 miles 19974$G35 44662.0 miles 54196$
Corvette 21929.0 miles 54429$Explorer 23558.0 miles 46962$Maxima 60286.0 miles 20918$Camry 71119.0 miles 16859$Yukon 36057.0 miles 30969$G35 76107.0 miles 41946$
Corvette 13698.0 miles 27121$Explorer 25635.0 miles 23745$Maxima 53812.0 miles 18350$Camry 64434.0 miles 37830$Yukon 24572.0 miles 36950$G35 13402.0 miles 48252$
Corvette 50509.0 miles 23053$Explorer 74302.0 miles 38865$Maxima 53184.0 miles 38196$Camry 55868.0 miles 54368$Yukon 52295.0 miles 35734$G35 70172.0 miles 19849$
Corvette 61250.0 miles 16769$Explorer 24938.0 miles 29638$Maxima 35576.0 miles 17626$Camry 6812.0 miles 31683$Yukon 63662.0 miles 50181$G35 75897.0 miles 43755$
Corvette 69894.0 miles 24846$Explorer 67837.0 miles 49411$Maxima 36097.0 miles 44845$Camry 9114.0 miles 48378$Yukon 38879.0 miles 23276$G35 10072.0 miles 51624$
Corvette 56101.0 miles 44667$Explorer 49992.0 miles 44606$Maxima 5216.0 miles 48111$Camry 74224.0 miles 39187$Yukon 30990.0 miles 49633$G35 73327.0 miles 49930$
Corvette 59802.0 miles 48216$Explorer 66945.0 miles 41078$Maxima 50969.0 miles 21364$Camry 25752.0 miles 36962$Yukon 24256.0 miles 17394$G35 38648.0 miles 48821$

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