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 32624.0 miles 36167$Explorer 28767.0 miles 24626$Maxima 37800.0 miles 19137$Camry 25749.0 miles 53314$Yukon 32986.0 miles 38536$G35 79903.0 miles 35480$
Corvette 18674.0 miles 54221$Explorer 27246.0 miles 26217$Maxima 48619.0 miles 53080$Camry 50465.0 miles 36104$Yukon 31780.0 miles 48884$G35 56979.0 miles 28313$
Corvette 69411.0 miles 21218$Explorer 44110.0 miles 34833$Maxima 16737.0 miles 17199$Camry 72762.0 miles 48501$Yukon 32057.0 miles 38309$G35 32783.0 miles 18907$
Corvette 5612.0 miles 19940$Explorer 37035.0 miles 38664$Maxima 77818.0 miles 44563$Camry 31951.0 miles 48900$Yukon 43666.0 miles 43303$G35 20319.0 miles 51411$
Corvette 20964.0 miles 44558$Explorer 9226.0 miles 53847$Maxima 17869.0 miles 25916$Camry 29956.0 miles 45585$Yukon 30272.0 miles 52368$G35 5321.0 miles 43932$
Corvette 29640.0 miles 32925$Explorer 70379.0 miles 26397$Maxima 54767.0 miles 17012$Camry 56996.0 miles 23982$Yukon 27352.0 miles 15690$G35 51667.0 miles 41235$
Corvette 73434.0 miles 23801$Explorer 74943.0 miles 53017$Maxima 27496.0 miles 40914$Camry 46886.0 miles 47867$Yukon 32286.0 miles 33365$G35 28008.0 miles 15509$
Corvette 9312.0 miles 15405$Explorer 16488.0 miles 45286$Maxima 59567.0 miles 51512$Camry 77122.0 miles 27320$Yukon 18003.0 miles 33272$G35 10411.0 miles 53948$
Corvette 40150.0 miles 40663$Explorer 27911.0 miles 20321$Maxima 79980.0 miles 25183$Camry 13554.0 miles 27259$Yukon 40055.0 miles 28124$G35 18202.0 miles 41826$


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