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 9592.0 miles 34608$Explorer 14056.0 miles 46068$Maxima 65897.0 miles 41280$Camry 73550.0 miles 38675$Yukon 78457.0 miles 15043$G35 42731.0 miles 40524$
Corvette 63425.0 miles 35465$Explorer 64860.0 miles 48690$Maxima 18480.0 miles 24225$Camry 43063.0 miles 43100$Yukon 63325.0 miles 33372$G35 78748.0 miles 46855$
Corvette 24349.0 miles 32028$Explorer 48969.0 miles 43470$Maxima 25256.0 miles 22799$Camry 54438.0 miles 18215$Yukon 29173.0 miles 43767$G35 62215.0 miles 44941$
Corvette 14895.0 miles 50022$Explorer 64903.0 miles 18821$Maxima 31118.0 miles 41625$Camry 36518.0 miles 32564$Yukon 66851.0 miles 27865$G35 22971.0 miles 37056$
Corvette 46721.0 miles 34662$Explorer 25126.0 miles 33334$Maxima 58379.0 miles 31846$Camry 67820.0 miles 42181$Yukon 42717.0 miles 37783$G35 61073.0 miles 30028$
Corvette 5164.0 miles 32450$Explorer 68632.0 miles 50430$Maxima 24868.0 miles 53352$Camry 10173.0 miles 45999$Yukon 53764.0 miles 50662$G35 5623.0 miles 37277$
Corvette 14711.0 miles 25846$Explorer 29135.0 miles 36338$Maxima 64829.0 miles 29646$Camry 13904.0 miles 50419$Yukon 19501.0 miles 29287$G35 78352.0 miles 36694$
Corvette 22964.0 miles 47415$Explorer 12277.0 miles 27755$Maxima 35286.0 miles 24320$Camry 55634.0 miles 35242$Yukon 64918.0 miles 26546$G35 70934.0 miles 41966$
Corvette 46022.0 miles 43413$Explorer 75799.0 miles 22568$Maxima 51002.0 miles 28873$Camry 65436.0 miles 28704$Yukon 5736.0 miles 27261$G35 22151.0 miles 25238$

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