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 49348.0 miles 29851$Explorer 78018.0 miles 50840$Maxima 45772.0 miles 22961$Camry 15606.0 miles 34942$Yukon 30814.0 miles 32055$G35 62521.0 miles 27497$
Corvette 51577.0 miles 15851$Explorer 46860.0 miles 35363$Maxima 68980.0 miles 35736$Camry 31680.0 miles 49742$Yukon 74582.0 miles 35593$G35 44893.0 miles 24970$
Corvette 35672.0 miles 20080$Explorer 64055.0 miles 44409$Maxima 22950.0 miles 16757$Camry 56453.0 miles 52681$Yukon 35022.0 miles 26114$G35 37843.0 miles 54912$
Corvette 17622.0 miles 35427$Explorer 28954.0 miles 32513$Maxima 56878.0 miles 19247$Camry 40204.0 miles 49985$Yukon 22615.0 miles 31530$G35 47899.0 miles 33216$
Corvette 66035.0 miles 54824$Explorer 45768.0 miles 22268$Maxima 29976.0 miles 45412$Camry 40792.0 miles 38513$Yukon 31967.0 miles 27391$G35 58509.0 miles 41180$
Corvette 76810.0 miles 38991$Explorer 28257.0 miles 40731$Maxima 37705.0 miles 45126$Camry 21863.0 miles 39383$Yukon 21959.0 miles 50128$G35 59732.0 miles 53971$
Corvette 49821.0 miles 29002$Explorer 66939.0 miles 23995$Maxima 20096.0 miles 15678$Camry 39707.0 miles 49860$Yukon 73835.0 miles 33363$G35 68545.0 miles 16934$
Corvette 48192.0 miles 39166$Explorer 6243.0 miles 32414$Maxima 41862.0 miles 42696$Camry 65053.0 miles 49946$Yukon 46868.0 miles 35256$G35 34850.0 miles 16329$
Corvette 65779.0 miles 37605$Explorer 34329.0 miles 16037$Maxima 79524.0 miles 36503$Camry 38087.0 miles 50216$Yukon 36353.0 miles 33632$G35 24044.0 miles 29999$

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