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 65292.0 miles 35505$Explorer 27110.0 miles 48853$Maxima 14472.0 miles 24292$Camry 21863.0 miles 46143$Yukon 49463.0 miles 33727$G35 24065.0 miles 20506$
Corvette 33799.0 miles 30477$Explorer 46851.0 miles 29048$Maxima 52056.0 miles 20606$Camry 72190.0 miles 40201$Yukon 37878.0 miles 26926$G35 74223.0 miles 48874$
Corvette 67594.0 miles 17407$Explorer 12744.0 miles 22772$Maxima 55044.0 miles 45890$Camry 32116.0 miles 47311$Yukon 9842.0 miles 49736$G35 64089.0 miles 52906$
Corvette 24624.0 miles 38039$Explorer 34565.0 miles 16434$Maxima 16485.0 miles 20500$Camry 46633.0 miles 17525$Yukon 5597.0 miles 43113$G35 59894.0 miles 29583$
Corvette 26304.0 miles 37128$Explorer 39818.0 miles 21061$Maxima 41358.0 miles 26820$Camry 60129.0 miles 54496$Yukon 28913.0 miles 53217$G35 75069.0 miles 23077$
Corvette 5350.0 miles 18089$Explorer 76768.0 miles 53876$Maxima 36184.0 miles 32039$Camry 11579.0 miles 24636$Yukon 56300.0 miles 51363$G35 26749.0 miles 54183$
Corvette 57152.0 miles 24229$Explorer 10375.0 miles 28459$Maxima 44933.0 miles 39914$Camry 29444.0 miles 37533$Yukon 26306.0 miles 36570$G35 5187.0 miles 27087$
Corvette 40602.0 miles 20665$Explorer 23827.0 miles 25364$Maxima 60581.0 miles 34956$Camry 33136.0 miles 52430$Yukon 66097.0 miles 16225$G35 49686.0 miles 32166$
Corvette 10807.0 miles 54849$Explorer 32133.0 miles 40534$Maxima 71887.0 miles 18454$Camry 72052.0 miles 51107$Yukon 35691.0 miles 20990$G35 62252.0 miles 16163$

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