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 47482.0 miles 37007$Explorer 45755.0 miles 28343$Maxima 56526.0 miles 54777$Camry 52883.0 miles 43720$Yukon 22599.0 miles 29333$G35 36924.0 miles 54427$
Corvette 76471.0 miles 42906$Explorer 57992.0 miles 28512$Maxima 45897.0 miles 26646$Camry 74236.0 miles 43258$Yukon 11419.0 miles 45606$G35 62839.0 miles 49723$
Corvette 21581.0 miles 23025$Explorer 56289.0 miles 40817$Maxima 24722.0 miles 51229$Camry 22905.0 miles 38729$Yukon 33175.0 miles 38111$G35 21095.0 miles 16873$
Corvette 34281.0 miles 20604$Explorer 76782.0 miles 19172$Maxima 76424.0 miles 22107$Camry 44593.0 miles 40822$Yukon 11701.0 miles 45823$G35 38466.0 miles 35961$
Corvette 43528.0 miles 20205$Explorer 57784.0 miles 53930$Maxima 15414.0 miles 16683$Camry 28569.0 miles 38235$Yukon 46317.0 miles 52764$G35 40902.0 miles 27051$
Corvette 26135.0 miles 19379$Explorer 9245.0 miles 47659$Maxima 58464.0 miles 38559$Camry 29763.0 miles 54822$Yukon 37671.0 miles 29773$G35 77848.0 miles 32536$
Corvette 79851.0 miles 23341$Explorer 59380.0 miles 24815$Maxima 44907.0 miles 29211$Camry 27398.0 miles 48219$Yukon 44771.0 miles 42454$G35 22268.0 miles 43057$
Corvette 49619.0 miles 47051$Explorer 51132.0 miles 33248$Maxima 61216.0 miles 35273$Camry 8973.0 miles 49941$Yukon 28622.0 miles 17141$G35 25011.0 miles 15355$
Corvette 31831.0 miles 38473$Explorer 44845.0 miles 26444$Maxima 68648.0 miles 54549$Camry 73942.0 miles 53866$Yukon 58669.0 miles 54879$G35 78584.0 miles 50712$


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