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 69736.0 miles 31970$Explorer 78739.0 miles 39653$Maxima 62586.0 miles 31627$Camry 54567.0 miles 44903$Yukon 65901.0 miles 47853$G35 59156.0 miles 32510$
Corvette 33146.0 miles 39052$Explorer 43314.0 miles 35483$Maxima 45797.0 miles 27819$Camry 59124.0 miles 25768$Yukon 73408.0 miles 32356$G35 27803.0 miles 15797$
Corvette 56461.0 miles 48266$Explorer 17194.0 miles 20628$Maxima 72494.0 miles 32166$Camry 21276.0 miles 34771$Yukon 26511.0 miles 42287$G35 75075.0 miles 50073$
Corvette 64896.0 miles 52177$Explorer 55103.0 miles 51018$Maxima 52433.0 miles 54383$Camry 13299.0 miles 26318$Yukon 15464.0 miles 42986$G35 77360.0 miles 46059$
Corvette 16912.0 miles 17803$Explorer 8203.0 miles 33565$Maxima 23645.0 miles 32592$Camry 61032.0 miles 23779$Yukon 64056.0 miles 24547$G35 28530.0 miles 15557$
Corvette 35415.0 miles 37369$Explorer 14726.0 miles 44759$Maxima 61913.0 miles 49593$Camry 72692.0 miles 35676$Yukon 58014.0 miles 36807$G35 46156.0 miles 34840$
Corvette 9615.0 miles 51286$Explorer 50302.0 miles 37522$Maxima 5623.0 miles 27654$Camry 17829.0 miles 42990$Yukon 46955.0 miles 30602$G35 17256.0 miles 36750$
Corvette 16049.0 miles 21640$Explorer 21585.0 miles 52180$Maxima 14757.0 miles 29862$Camry 9012.0 miles 18952$Yukon 14704.0 miles 17154$G35 46919.0 miles 51246$
Corvette 19401.0 miles 34043$Explorer 23539.0 miles 43994$Maxima 26321.0 miles 50592$Camry 77493.0 miles 27074$Yukon 31233.0 miles 21616$G35 19504.0 miles 27903$


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