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 8254.0 miles 21172$Explorer 49095.0 miles 30088$Maxima 20855.0 miles 41240$Camry 26700.0 miles 46605$Yukon 60857.0 miles 16622$G35 17259.0 miles 36529$
Corvette 14691.0 miles 52261$Explorer 21288.0 miles 21919$Maxima 10020.0 miles 25127$Camry 75383.0 miles 20747$Yukon 19797.0 miles 42166$G35 54492.0 miles 48942$
Corvette 69651.0 miles 19432$Explorer 63586.0 miles 23847$Maxima 29815.0 miles 21291$Camry 34753.0 miles 25748$Yukon 53219.0 miles 32186$G35 20839.0 miles 31467$
Corvette 26038.0 miles 43560$Explorer 45950.0 miles 19269$Maxima 38991.0 miles 36778$Camry 48310.0 miles 43701$Yukon 10898.0 miles 24255$G35 38499.0 miles 43729$
Corvette 76475.0 miles 37309$Explorer 12537.0 miles 52437$Maxima 42372.0 miles 50027$Camry 11413.0 miles 15004$Yukon 29279.0 miles 44545$G35 7224.0 miles 52205$
Corvette 72148.0 miles 41557$Explorer 79762.0 miles 20549$Maxima 58946.0 miles 15327$Camry 24569.0 miles 27645$Yukon 77689.0 miles 17349$G35 78335.0 miles 32251$
Corvette 39606.0 miles 36001$Explorer 55053.0 miles 15316$Maxima 19885.0 miles 32436$Camry 74702.0 miles 35396$Yukon 38512.0 miles 21908$G35 20843.0 miles 18900$
Corvette 27210.0 miles 43794$Explorer 29549.0 miles 24908$Maxima 46549.0 miles 16082$Camry 25087.0 miles 28435$Yukon 12548.0 miles 54491$G35 26740.0 miles 43796$
Corvette 12325.0 miles 50822$Explorer 29651.0 miles 31412$Maxima 5206.0 miles 17282$Camry 27266.0 miles 54979$Yukon 16734.0 miles 43206$G35 49760.0 miles 37904$


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