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 16584.0 miles 22100$Explorer 67321.0 miles 52455$Maxima 65785.0 miles 42450$Camry 59471.0 miles 20506$Yukon 67767.0 miles 17209$G35 29605.0 miles 20118$
Corvette 11432.0 miles 25033$Explorer 78644.0 miles 28226$Maxima 21886.0 miles 16240$Camry 73479.0 miles 19158$Yukon 9262.0 miles 30020$G35 76593.0 miles 21057$
Corvette 20120.0 miles 19453$Explorer 50202.0 miles 20269$Maxima 7314.0 miles 25426$Camry 36473.0 miles 18282$Yukon 78465.0 miles 17545$G35 59848.0 miles 48389$
Corvette 51707.0 miles 31095$Explorer 38783.0 miles 31791$Maxima 73518.0 miles 31078$Camry 60620.0 miles 49369$Yukon 78596.0 miles 45512$G35 71188.0 miles 49508$
Corvette 52104.0 miles 43024$Explorer 51274.0 miles 34197$Maxima 61338.0 miles 51295$Camry 30253.0 miles 27645$Yukon 63496.0 miles 35376$G35 34970.0 miles 37154$
Corvette 67278.0 miles 50126$Explorer 13772.0 miles 31625$Maxima 44346.0 miles 29002$Camry 54922.0 miles 47297$Yukon 71508.0 miles 26207$G35 51331.0 miles 37537$
Corvette 56046.0 miles 35691$Explorer 59578.0 miles 27738$Maxima 62220.0 miles 32905$Camry 75405.0 miles 27186$Yukon 22934.0 miles 22989$G35 29988.0 miles 19681$
Corvette 22153.0 miles 54682$Explorer 38854.0 miles 28244$Maxima 46282.0 miles 20462$Camry 56592.0 miles 36994$Yukon 32233.0 miles 50482$G35 33782.0 miles 24774$
Corvette 23375.0 miles 43401$Explorer 34915.0 miles 40100$Maxima 7370.0 miles 24671$Camry 47018.0 miles 30560$Yukon 53239.0 miles 17836$G35 13297.0 miles 33363$


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