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 20232.0 miles 18937$Explorer 72321.0 miles 29671$Maxima 66203.0 miles 44580$Camry 35954.0 miles 34595$Yukon 49784.0 miles 37191$G35 50768.0 miles 48708$
Corvette 54149.0 miles 47725$Explorer 56812.0 miles 30142$Maxima 11539.0 miles 51927$Camry 10613.0 miles 54710$Yukon 7630.0 miles 18527$G35 28157.0 miles 32579$
Corvette 71515.0 miles 52147$Explorer 44688.0 miles 16780$Maxima 74536.0 miles 40480$Camry 27646.0 miles 15203$Yukon 72754.0 miles 34002$G35 53368.0 miles 33126$
Corvette 7488.0 miles 20542$Explorer 57543.0 miles 38233$Maxima 5587.0 miles 15249$Camry 66354.0 miles 24750$Yukon 17564.0 miles 46869$G35 76841.0 miles 51803$
Corvette 27584.0 miles 20186$Explorer 60345.0 miles 40295$Maxima 40651.0 miles 46274$Camry 36709.0 miles 22124$Yukon 21249.0 miles 43949$G35 50218.0 miles 41604$
Corvette 6674.0 miles 49718$Explorer 38683.0 miles 51000$Maxima 65793.0 miles 35966$Camry 22813.0 miles 52413$Yukon 63463.0 miles 39964$G35 73475.0 miles 40209$
Corvette 55323.0 miles 27238$Explorer 61101.0 miles 15908$Maxima 59193.0 miles 44517$Camry 57465.0 miles 37222$Yukon 27430.0 miles 25522$G35 42824.0 miles 36309$
Corvette 38264.0 miles 44125$Explorer 75551.0 miles 35971$Maxima 67363.0 miles 46997$Camry 28389.0 miles 41265$Yukon 55199.0 miles 50255$G35 30368.0 miles 53886$
Corvette 32577.0 miles 40728$Explorer 47083.0 miles 53316$Maxima 11123.0 miles 21031$Camry 27035.0 miles 34079$Yukon 37399.0 miles 25957$G35 58150.0 miles 47936$

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