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 33062.0 miles 24069$Explorer 30959.0 miles 40489$Maxima 35065.0 miles 52863$Camry 16093.0 miles 27173$Yukon 35506.0 miles 30425$G35 7188.0 miles 44574$
Corvette 22866.0 miles 15031$Explorer 31265.0 miles 33685$Maxima 69422.0 miles 20818$Camry 58670.0 miles 47837$Yukon 5452.0 miles 34070$G35 57289.0 miles 38570$
Corvette 32634.0 miles 42962$Explorer 40372.0 miles 27209$Maxima 49821.0 miles 48639$Camry 13534.0 miles 20258$Yukon 25411.0 miles 38406$G35 10071.0 miles 15520$
Corvette 76149.0 miles 38337$Explorer 30177.0 miles 21179$Maxima 54796.0 miles 53950$Camry 25909.0 miles 38990$Yukon 70373.0 miles 52396$G35 61471.0 miles 50962$
Corvette 59948.0 miles 34356$Explorer 40454.0 miles 19166$Maxima 53310.0 miles 33974$Camry 26585.0 miles 23682$Yukon 60010.0 miles 22401$G35 60301.0 miles 51660$
Corvette 61332.0 miles 47638$Explorer 25711.0 miles 22126$Maxima 26616.0 miles 51499$Camry 41890.0 miles 16760$Yukon 25242.0 miles 29106$G35 61875.0 miles 29323$
Corvette 15858.0 miles 24398$Explorer 77523.0 miles 38776$Maxima 12364.0 miles 36824$Camry 59371.0 miles 47987$Yukon 78132.0 miles 38181$G35 68651.0 miles 41944$
Corvette 46742.0 miles 49585$Explorer 63040.0 miles 25595$Maxima 77340.0 miles 20148$Camry 69856.0 miles 29843$Yukon 17484.0 miles 46142$G35 78139.0 miles 20845$
Corvette 16434.0 miles 42448$Explorer 32669.0 miles 29295$Maxima 34598.0 miles 15510$Camry 28093.0 miles 53085$Yukon 41377.0 miles 51812$G35 5614.0 miles 42963$


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