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 75771.0 miles 25174$Explorer 38889.0 miles 34126$Maxima 22379.0 miles 34149$Camry 16409.0 miles 44759$Yukon 32624.0 miles 31535$G35 7489.0 miles 39191$
Corvette 50473.0 miles 48983$Explorer 36688.0 miles 54946$Maxima 77225.0 miles 21058$Camry 12436.0 miles 24945$Yukon 61637.0 miles 25501$G35 62746.0 miles 36660$
Corvette 43721.0 miles 21579$Explorer 17897.0 miles 31742$Maxima 20631.0 miles 37397$Camry 59769.0 miles 17847$Yukon 74038.0 miles 41949$G35 58820.0 miles 48097$
Corvette 20585.0 miles 43307$Explorer 72915.0 miles 43804$Maxima 13283.0 miles 54483$Camry 26445.0 miles 43584$Yukon 22460.0 miles 23283$G35 73314.0 miles 15148$
Corvette 30027.0 miles 43150$Explorer 15243.0 miles 51169$Maxima 22285.0 miles 54073$Camry 75355.0 miles 29092$Yukon 42435.0 miles 25932$G35 11311.0 miles 34194$
Corvette 51285.0 miles 19341$Explorer 39975.0 miles 39787$Maxima 62954.0 miles 45546$Camry 14443.0 miles 25234$Yukon 71564.0 miles 37832$G35 68508.0 miles 15505$
Corvette 23165.0 miles 30086$Explorer 65984.0 miles 45501$Maxima 14894.0 miles 33024$Camry 51707.0 miles 33232$Yukon 75711.0 miles 30296$G35 29081.0 miles 25905$
Corvette 19525.0 miles 33414$Explorer 39481.0 miles 32387$Maxima 78790.0 miles 37121$Camry 7001.0 miles 20510$Yukon 25407.0 miles 23650$G35 16359.0 miles 48061$
Corvette 23799.0 miles 34861$Explorer 75327.0 miles 18759$Maxima 76959.0 miles 52850$Camry 26772.0 miles 48837$Yukon 50565.0 miles 52780$G35 16514.0 miles 39487$


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