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 22753.0 miles 37165$Explorer 25093.0 miles 41208$Maxima 50302.0 miles 24941$Camry 70259.0 miles 36010$Yukon 39497.0 miles 34323$G35 45205.0 miles 27583$
Corvette 51951.0 miles 52402$Explorer 19763.0 miles 15554$Maxima 41064.0 miles 49640$Camry 16358.0 miles 41262$Yukon 63881.0 miles 44826$G35 10493.0 miles 41503$
Corvette 56918.0 miles 38889$Explorer 14737.0 miles 27710$Maxima 17311.0 miles 52949$Camry 67079.0 miles 49544$Yukon 55327.0 miles 22444$G35 37182.0 miles 49659$
Corvette 29446.0 miles 54967$Explorer 52958.0 miles 44774$Maxima 77223.0 miles 23233$Camry 69710.0 miles 21048$Yukon 22385.0 miles 54293$G35 37603.0 miles 24883$
Corvette 48802.0 miles 27197$Explorer 77929.0 miles 21943$Maxima 76380.0 miles 46915$Camry 23536.0 miles 20456$Yukon 38172.0 miles 15750$G35 59992.0 miles 54367$
Corvette 58050.0 miles 22135$Explorer 45108.0 miles 46875$Maxima 43263.0 miles 54876$Camry 50669.0 miles 33509$Yukon 30657.0 miles 43745$G35 30961.0 miles 40792$
Corvette 73935.0 miles 46117$Explorer 54706.0 miles 51880$Maxima 75555.0 miles 15105$Camry 56173.0 miles 31850$Yukon 79012.0 miles 27102$G35 33624.0 miles 52547$
Corvette 25067.0 miles 27970$Explorer 73942.0 miles 40248$Maxima 8309.0 miles 27988$Camry 13741.0 miles 42641$Yukon 42602.0 miles 24043$G35 18353.0 miles 52949$
Corvette 8136.0 miles 18593$Explorer 16199.0 miles 27649$Maxima 22214.0 miles 43918$Camry 44058.0 miles 38580$Yukon 10538.0 miles 41715$G35 19524.0 miles 53721$


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