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 78521.0 miles 25067$Explorer 41175.0 miles 15385$Maxima 17463.0 miles 17468$Camry 69242.0 miles 31626$Yukon 45990.0 miles 35175$G35 23073.0 miles 40048$
Corvette 53632.0 miles 38284$Explorer 78904.0 miles 33876$Maxima 70839.0 miles 34709$Camry 11047.0 miles 39252$Yukon 58636.0 miles 42105$G35 28151.0 miles 28745$
Corvette 40902.0 miles 51728$Explorer 43156.0 miles 40002$Maxima 63117.0 miles 43126$Camry 12106.0 miles 49549$Yukon 24052.0 miles 44128$G35 49658.0 miles 27154$
Corvette 19028.0 miles 43100$Explorer 58231.0 miles 27308$Maxima 51676.0 miles 36137$Camry 63321.0 miles 40873$Yukon 60017.0 miles 47124$G35 69527.0 miles 49046$
Corvette 63395.0 miles 16770$Explorer 19508.0 miles 39332$Maxima 7984.0 miles 28782$Camry 19181.0 miles 33854$Yukon 74876.0 miles 17985$G35 70275.0 miles 38105$
Corvette 62629.0 miles 20571$Explorer 51468.0 miles 25653$Maxima 6330.0 miles 49406$Camry 60347.0 miles 35748$Yukon 21098.0 miles 31636$G35 13025.0 miles 30734$
Corvette 9683.0 miles 30382$Explorer 72749.0 miles 30127$Maxima 17778.0 miles 34564$Camry 77033.0 miles 15041$Yukon 38869.0 miles 15029$G35 26374.0 miles 22899$
Corvette 47910.0 miles 50890$Explorer 76190.0 miles 32399$Maxima 78845.0 miles 45208$Camry 31436.0 miles 22552$Yukon 34849.0 miles 34853$G35 69029.0 miles 21589$
Corvette 39733.0 miles 15903$Explorer 69770.0 miles 19579$Maxima 38031.0 miles 54640$Camry 51235.0 miles 30005$Yukon 44794.0 miles 33604$G35 6740.0 miles 29380$

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