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 70591.0 miles 18217$Explorer 76646.0 miles 43234$Maxima 30062.0 miles 29113$Camry 66958.0 miles 31992$Yukon 39087.0 miles 15228$G35 12473.0 miles 33786$
Corvette 16706.0 miles 30415$Explorer 27892.0 miles 51568$Maxima 27135.0 miles 53400$Camry 13821.0 miles 20322$Yukon 12885.0 miles 37223$G35 75897.0 miles 17476$
Corvette 38200.0 miles 38189$Explorer 51560.0 miles 28344$Maxima 55465.0 miles 21332$Camry 42896.0 miles 24675$Yukon 46888.0 miles 33255$G35 72312.0 miles 35531$
Corvette 66271.0 miles 19267$Explorer 8306.0 miles 52554$Maxima 48038.0 miles 18357$Camry 58987.0 miles 24036$Yukon 38292.0 miles 26059$G35 60609.0 miles 23147$
Corvette 27132.0 miles 43304$Explorer 49412.0 miles 40339$Maxima 7436.0 miles 29767$Camry 26344.0 miles 30260$Yukon 35452.0 miles 39444$G35 15436.0 miles 18129$
Corvette 29066.0 miles 48239$Explorer 15922.0 miles 15192$Maxima 56299.0 miles 50008$Camry 10123.0 miles 15162$Yukon 65177.0 miles 34903$G35 17911.0 miles 50365$
Corvette 75526.0 miles 54099$Explorer 31699.0 miles 39880$Maxima 6001.0 miles 20601$Camry 68219.0 miles 38450$Yukon 22522.0 miles 35536$G35 76829.0 miles 43214$
Corvette 34463.0 miles 19272$Explorer 52807.0 miles 32895$Maxima 33319.0 miles 25749$Camry 59370.0 miles 41193$Yukon 57719.0 miles 34218$G35 47754.0 miles 23170$
Corvette 79192.0 miles 30544$Explorer 51978.0 miles 39507$Maxima 52907.0 miles 16983$Camry 46282.0 miles 17326$Yukon 48506.0 miles 31116$G35 38761.0 miles 23288$

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