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 9494.0 miles 41916$Explorer 8619.0 miles 37000$Maxima 48981.0 miles 20283$Camry 25801.0 miles 22435$Yukon 34414.0 miles 51117$G35 70694.0 miles 29824$
Corvette 79307.0 miles 26295$Explorer 31090.0 miles 19650$Maxima 51545.0 miles 53399$Camry 19794.0 miles 18803$Yukon 49773.0 miles 28953$G35 34602.0 miles 36780$
Corvette 51272.0 miles 46478$Explorer 45232.0 miles 30406$Maxima 22051.0 miles 46716$Camry 41865.0 miles 52295$Yukon 13019.0 miles 52416$G35 31135.0 miles 54898$
Corvette 67646.0 miles 29829$Explorer 13944.0 miles 32455$Maxima 25215.0 miles 38899$Camry 40721.0 miles 26529$Yukon 25479.0 miles 49892$G35 45171.0 miles 35935$
Corvette 22618.0 miles 47518$Explorer 56727.0 miles 42229$Maxima 14602.0 miles 37170$Camry 28321.0 miles 37021$Yukon 71250.0 miles 48207$G35 18941.0 miles 54384$
Corvette 46877.0 miles 39453$Explorer 57280.0 miles 38915$Maxima 71517.0 miles 38852$Camry 54385.0 miles 43711$Yukon 8131.0 miles 18930$G35 66308.0 miles 16030$
Corvette 55372.0 miles 17601$Explorer 27143.0 miles 21814$Maxima 16259.0 miles 22150$Camry 31569.0 miles 40248$Yukon 41510.0 miles 32539$G35 46632.0 miles 45221$
Corvette 16292.0 miles 26310$Explorer 16143.0 miles 44671$Maxima 74815.0 miles 20961$Camry 50023.0 miles 33308$Yukon 55838.0 miles 37852$G35 42712.0 miles 17615$
Corvette 50087.0 miles 43792$Explorer 25062.0 miles 37894$Maxima 54973.0 miles 31255$Camry 46999.0 miles 25512$Yukon 17382.0 miles 20060$G35 72757.0 miles 32386$

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