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 34030.0 miles 26628$Explorer 66004.0 miles 26959$Maxima 76233.0 miles 32168$Camry 19522.0 miles 50302$Yukon 13983.0 miles 43226$G35 60951.0 miles 41415$
Corvette 35824.0 miles 36604$Explorer 30711.0 miles 22313$Maxima 53833.0 miles 29694$Camry 72795.0 miles 36947$Yukon 65571.0 miles 18518$G35 55133.0 miles 26270$
Corvette 55911.0 miles 26694$Explorer 70403.0 miles 31198$Maxima 67297.0 miles 20717$Camry 27181.0 miles 30993$Yukon 63638.0 miles 32704$G35 67103.0 miles 28485$
Corvette 27201.0 miles 21990$Explorer 76322.0 miles 51059$Maxima 9480.0 miles 20896$Camry 66621.0 miles 41689$Yukon 26491.0 miles 34093$G35 35772.0 miles 17674$
Corvette 38429.0 miles 25355$Explorer 22971.0 miles 53319$Maxima 26869.0 miles 49194$Camry 78154.0 miles 34565$Yukon 58986.0 miles 23684$G35 28604.0 miles 27873$
Corvette 64929.0 miles 28454$Explorer 62693.0 miles 23419$Maxima 79908.0 miles 23389$Camry 51125.0 miles 40650$Yukon 48152.0 miles 34890$G35 39727.0 miles 39698$
Corvette 59286.0 miles 33564$Explorer 79282.0 miles 43803$Maxima 43106.0 miles 40671$Camry 75380.0 miles 50132$Yukon 31513.0 miles 28672$G35 25821.0 miles 20156$
Corvette 41720.0 miles 19989$Explorer 27897.0 miles 54334$Maxima 18799.0 miles 45279$Camry 20673.0 miles 38698$Yukon 65247.0 miles 50500$G35 39793.0 miles 26059$
Corvette 51956.0 miles 53678$Explorer 75779.0 miles 16215$Maxima 10073.0 miles 46824$Camry 20608.0 miles 35732$Yukon 26417.0 miles 38972$G35 72163.0 miles 51099$


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