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 66911.0 miles 38690$Explorer 69661.0 miles 52823$Maxima 51492.0 miles 22400$Camry 38174.0 miles 34356$Yukon 37331.0 miles 43508$G35 19282.0 miles 19842$
Corvette 7679.0 miles 36383$Explorer 23980.0 miles 32906$Maxima 56620.0 miles 41782$Camry 11071.0 miles 44372$Yukon 79425.0 miles 48231$G35 74043.0 miles 36306$
Corvette 15560.0 miles 33758$Explorer 41891.0 miles 49675$Maxima 8981.0 miles 43962$Camry 35315.0 miles 48728$Yukon 51861.0 miles 23762$G35 17728.0 miles 33692$
Corvette 30643.0 miles 49063$Explorer 44209.0 miles 50064$Maxima 75557.0 miles 26668$Camry 34950.0 miles 18655$Yukon 9176.0 miles 16026$G35 52243.0 miles 28998$
Corvette 15971.0 miles 22602$Explorer 76366.0 miles 37545$Maxima 32646.0 miles 32595$Camry 9242.0 miles 47051$Yukon 22665.0 miles 29599$G35 14352.0 miles 19630$
Corvette 26493.0 miles 51942$Explorer 40132.0 miles 25939$Maxima 25207.0 miles 39409$Camry 55005.0 miles 35557$Yukon 50703.0 miles 53112$G35 24495.0 miles 41728$
Corvette 19448.0 miles 29733$Explorer 30069.0 miles 32128$Maxima 6869.0 miles 26923$Camry 71183.0 miles 41053$Yukon 31772.0 miles 18805$G35 34206.0 miles 35152$
Corvette 18905.0 miles 16004$Explorer 7539.0 miles 24046$Maxima 19120.0 miles 30855$Camry 65645.0 miles 40085$Yukon 66103.0 miles 42148$G35 51572.0 miles 44528$
Corvette 69319.0 miles 19719$Explorer 19363.0 miles 37137$Maxima 51485.0 miles 23394$Camry 26681.0 miles 24164$Yukon 30327.0 miles 19573$G35 34678.0 miles 49585$


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