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 76240.0 miles 41348$Explorer 5840.0 miles 32992$Maxima 71034.0 miles 42522$Camry 6499.0 miles 48056$Yukon 76456.0 miles 40278$G35 51300.0 miles 43885$
Corvette 74906.0 miles 25902$Explorer 61670.0 miles 29661$Maxima 44152.0 miles 38640$Camry 57640.0 miles 24147$Yukon 54947.0 miles 35632$G35 43428.0 miles 40828$
Corvette 52649.0 miles 42897$Explorer 9016.0 miles 32603$Maxima 51207.0 miles 23672$Camry 18128.0 miles 26087$Yukon 39399.0 miles 23196$G35 60669.0 miles 27899$
Corvette 55002.0 miles 41177$Explorer 14223.0 miles 23638$Maxima 22411.0 miles 38100$Camry 38446.0 miles 23249$Yukon 52794.0 miles 31793$G35 73445.0 miles 54635$
Corvette 50835.0 miles 40442$Explorer 72903.0 miles 36501$Maxima 30509.0 miles 19709$Camry 23345.0 miles 18510$Yukon 42603.0 miles 38786$G35 60531.0 miles 20617$
Corvette 75544.0 miles 46100$Explorer 68301.0 miles 19831$Maxima 6000.0 miles 16133$Camry 29477.0 miles 44464$Yukon 55410.0 miles 22495$G35 36810.0 miles 21708$
Corvette 76141.0 miles 19617$Explorer 27000.0 miles 48692$Maxima 24029.0 miles 34936$Camry 72543.0 miles 35329$Yukon 33128.0 miles 18062$G35 29443.0 miles 26395$
Corvette 14696.0 miles 26709$Explorer 10164.0 miles 29844$Maxima 28185.0 miles 50159$Camry 7139.0 miles 44830$Yukon 58279.0 miles 34627$G35 58180.0 miles 35020$
Corvette 61523.0 miles 22364$Explorer 76052.0 miles 33308$Maxima 43147.0 miles 30829$Camry 24976.0 miles 43106$Yukon 65709.0 miles 30148$G35 62555.0 miles 32501$


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