PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
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
Corvette 79787.0 miles 20510$Explorer 68347.0 miles 26995$Maxima 55614.0 miles 42722$Camry 70631.0 miles 52726$Yukon 65295.0 miles 38004$G35 71435.0 miles 36652$
Corvette 41775.0 miles 19280$Explorer 75595.0 miles 53559$Maxima 34411.0 miles 31918$Camry 30093.0 miles 17553$Yukon 39401.0 miles 41487$G35 10076.0 miles 24837$
Corvette 16006.0 miles 35386$Explorer 39523.0 miles 20657$Maxima 39607.0 miles 45667$Camry 37563.0 miles 20053$Yukon 42888.0 miles 28398$G35 41160.0 miles 51478$
Corvette 71894.0 miles 40070$Explorer 12819.0 miles 53672$Maxima 53381.0 miles 17129$Camry 77340.0 miles 19059$Yukon 12833.0 miles 39741$G35 45264.0 miles 39083$
Corvette 38083.0 miles 32673$Explorer 41770.0 miles 37255$Maxima 27301.0 miles 48426$Camry 71364.0 miles 16681$Yukon 73139.0 miles 35738$G35 28935.0 miles 16372$
Corvette 26082.0 miles 25461$Explorer 68657.0 miles 18028$Maxima 46916.0 miles 27349$Camry 45192.0 miles 41702$Yukon 33540.0 miles 30250$G35 43740.0 miles 47024$
Corvette 59676.0 miles 53289$Explorer 27449.0 miles 37911$Maxima 46741.0 miles 44636$Camry 36627.0 miles 36373$Yukon 64708.0 miles 47045$G35 64971.0 miles 19342$
Corvette 57615.0 miles 16150$Explorer 15426.0 miles 51582$Maxima 22489.0 miles 27799$Camry 39011.0 miles 27169$Yukon 26299.0 miles 41562$G35 43234.0 miles 16073$
Corvette 41098.0 miles 46822$Explorer 27789.0 miles 42909$Maxima 17500.0 miles 25783$Camry 65793.0 miles 52992$Yukon 43953.0 miles 16133$G35 23673.0 miles 24588$

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