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 24006.0 miles 28868$Explorer 69237.0 miles 43658$Maxima 49365.0 miles 36100$Camry 75842.0 miles 17265$Yukon 63016.0 miles 19033$G35 60193.0 miles 34890$
Corvette 63171.0 miles 40152$Explorer 39279.0 miles 43414$Maxima 38280.0 miles 48650$Camry 44048.0 miles 53337$Yukon 8614.0 miles 24220$G35 73524.0 miles 27440$
Corvette 20823.0 miles 42186$Explorer 63259.0 miles 19831$Maxima 79603.0 miles 15039$Camry 36023.0 miles 52714$Yukon 27898.0 miles 36713$G35 47149.0 miles 50195$
Corvette 23685.0 miles 35263$Explorer 32434.0 miles 53786$Maxima 61794.0 miles 22257$Camry 79185.0 miles 34169$Yukon 42728.0 miles 39731$G35 55574.0 miles 47929$
Corvette 24964.0 miles 22464$Explorer 5885.0 miles 54637$Maxima 29346.0 miles 26743$Camry 36046.0 miles 35540$Yukon 18671.0 miles 34387$G35 52424.0 miles 23308$
Corvette 60457.0 miles 39432$Explorer 7139.0 miles 32079$Maxima 66105.0 miles 17250$Camry 14321.0 miles 43759$Yukon 5339.0 miles 41818$G35 69316.0 miles 54662$
Corvette 41192.0 miles 24528$Explorer 40702.0 miles 29842$Maxima 73693.0 miles 29399$Camry 8002.0 miles 37617$Yukon 11849.0 miles 15055$G35 16994.0 miles 23439$
Corvette 40312.0 miles 43562$Explorer 47238.0 miles 29257$Maxima 12349.0 miles 31224$Camry 40226.0 miles 20184$Yukon 45501.0 miles 23736$G35 9608.0 miles 30000$
Corvette 71754.0 miles 15730$Explorer 17335.0 miles 39079$Maxima 18521.0 miles 23449$Camry 24013.0 miles 39136$Yukon 15024.0 miles 52272$G35 39734.0 miles 43935$


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