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 64198.0 miles 18265$Explorer 58473.0 miles 54140$Maxima 49737.0 miles 18368$Camry 49963.0 miles 21197$Yukon 41538.0 miles 28956$G35 59674.0 miles 24008$
Corvette 43292.0 miles 33910$Explorer 70433.0 miles 50576$Maxima 61655.0 miles 35446$Camry 40816.0 miles 51391$Yukon 45053.0 miles 35436$G35 31745.0 miles 41548$
Corvette 41324.0 miles 19056$Explorer 66910.0 miles 50058$Maxima 51091.0 miles 43135$Camry 26949.0 miles 54688$Yukon 71182.0 miles 17548$G35 25054.0 miles 31534$
Corvette 79083.0 miles 16002$Explorer 52907.0 miles 52342$Maxima 17956.0 miles 18557$Camry 46252.0 miles 16078$Yukon 20643.0 miles 48906$G35 36927.0 miles 42283$
Corvette 12924.0 miles 47898$Explorer 14874.0 miles 44015$Maxima 63176.0 miles 29665$Camry 47073.0 miles 22927$Yukon 38025.0 miles 38919$G35 67684.0 miles 21743$
Corvette 5975.0 miles 42679$Explorer 34453.0 miles 36835$Maxima 52916.0 miles 19227$Camry 68207.0 miles 35450$Yukon 46491.0 miles 53201$G35 65065.0 miles 53957$
Corvette 67827.0 miles 38889$Explorer 57863.0 miles 47598$Maxima 46922.0 miles 22719$Camry 36128.0 miles 52390$Yukon 63427.0 miles 17870$G35 22771.0 miles 51981$
Corvette 22346.0 miles 17871$Explorer 64483.0 miles 16238$Maxima 59673.0 miles 24910$Camry 21973.0 miles 48665$Yukon 18541.0 miles 38074$G35 62056.0 miles 39911$
Corvette 41302.0 miles 30496$Explorer 78186.0 miles 42676$Maxima 60375.0 miles 41047$Camry 66297.0 miles 32348$Yukon 10529.0 miles 38261$G35 73145.0 miles 19418$


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