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 8981.0 miles 19064$Explorer 69359.0 miles 54553$Maxima 44539.0 miles 38007$Camry 29340.0 miles 29397$Yukon 18209.0 miles 29485$G35 50554.0 miles 23464$
Corvette 34842.0 miles 17851$Explorer 38118.0 miles 38749$Maxima 29436.0 miles 47886$Camry 6595.0 miles 39213$Yukon 45709.0 miles 29405$G35 39406.0 miles 46847$
Corvette 41749.0 miles 40259$Explorer 12460.0 miles 32212$Maxima 29260.0 miles 30931$Camry 66065.0 miles 42186$Yukon 13455.0 miles 15815$G35 40121.0 miles 34894$
Corvette 49271.0 miles 23965$Explorer 64754.0 miles 27177$Maxima 71360.0 miles 27321$Camry 18935.0 miles 42066$Yukon 50609.0 miles 50196$G35 33766.0 miles 28637$
Corvette 79300.0 miles 16751$Explorer 79172.0 miles 22954$Maxima 21915.0 miles 20932$Camry 62215.0 miles 54344$Yukon 30117.0 miles 30142$G35 5296.0 miles 50253$
Corvette 56205.0 miles 17390$Explorer 64064.0 miles 48485$Maxima 47542.0 miles 24025$Camry 7183.0 miles 17623$Yukon 47984.0 miles 23300$G35 64630.0 miles 23491$
Corvette 37505.0 miles 54476$Explorer 41428.0 miles 25554$Maxima 36906.0 miles 23092$Camry 5970.0 miles 48059$Yukon 37110.0 miles 34843$G35 41881.0 miles 30794$
Corvette 5691.0 miles 16680$Explorer 71973.0 miles 52290$Maxima 56075.0 miles 28460$Camry 22614.0 miles 45686$Yukon 64132.0 miles 17437$G35 68949.0 miles 30096$
Corvette 12756.0 miles 20419$Explorer 71611.0 miles 25540$Maxima 77103.0 miles 45985$Camry 19389.0 miles 53788$Yukon 30976.0 miles 21081$G35 73520.0 miles 15119$

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