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 17381.0 miles 50134$Explorer 32505.0 miles 30893$Maxima 73014.0 miles 41861$Camry 71832.0 miles 22492$Yukon 30134.0 miles 41234$G35 28922.0 miles 48402$
Corvette 43428.0 miles 22955$Explorer 63296.0 miles 53600$Maxima 55530.0 miles 47708$Camry 11566.0 miles 38336$Yukon 17361.0 miles 19693$G35 76369.0 miles 19385$
Corvette 52471.0 miles 16227$Explorer 14356.0 miles 47473$Maxima 46472.0 miles 33468$Camry 24164.0 miles 28230$Yukon 77207.0 miles 30710$G35 62331.0 miles 21249$
Corvette 49769.0 miles 28618$Explorer 79946.0 miles 52819$Maxima 34144.0 miles 32958$Camry 24124.0 miles 34400$Yukon 74640.0 miles 34211$G35 63838.0 miles 38134$
Corvette 35077.0 miles 27921$Explorer 56710.0 miles 32063$Maxima 7037.0 miles 24079$Camry 66901.0 miles 27162$Yukon 16472.0 miles 50904$G35 33230.0 miles 37086$
Corvette 56686.0 miles 17102$Explorer 47268.0 miles 37244$Maxima 12118.0 miles 47506$Camry 16272.0 miles 43370$Yukon 9158.0 miles 48265$G35 41195.0 miles 53659$
Corvette 21210.0 miles 41041$Explorer 74424.0 miles 17134$Maxima 54685.0 miles 53324$Camry 48734.0 miles 51776$Yukon 79459.0 miles 54900$G35 53521.0 miles 23260$
Corvette 75000.0 miles 19605$Explorer 35721.0 miles 54978$Maxima 20737.0 miles 47834$Camry 44806.0 miles 33629$Yukon 26240.0 miles 42739$G35 24421.0 miles 45309$
Corvette 37044.0 miles 37689$Explorer 50312.0 miles 42347$Maxima 73333.0 miles 45290$Camry 77497.0 miles 27168$Yukon 30333.0 miles 29932$G35 19148.0 miles 46767$

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