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 74981.0 miles 21164$Explorer 15387.0 miles 15590$Maxima 50504.0 miles 18294$Camry 78629.0 miles 16087$Yukon 55545.0 miles 47861$G35 64261.0 miles 46768$
Corvette 54772.0 miles 46984$Explorer 55050.0 miles 18555$Maxima 28877.0 miles 15727$Camry 31054.0 miles 37967$Yukon 24080.0 miles 27144$G35 14559.0 miles 26047$
Corvette 71815.0 miles 43270$Explorer 73726.0 miles 44308$Maxima 65154.0 miles 41346$Camry 37203.0 miles 49874$Yukon 53936.0 miles 19383$G35 20481.0 miles 27657$
Corvette 33183.0 miles 33290$Explorer 45443.0 miles 41039$Maxima 47304.0 miles 44334$Camry 77951.0 miles 40662$Yukon 35840.0 miles 42032$G35 49428.0 miles 27610$
Corvette 51083.0 miles 31263$Explorer 54201.0 miles 26176$Maxima 18282.0 miles 52513$Camry 9403.0 miles 41416$Yukon 48289.0 miles 19359$G35 79799.0 miles 50920$
Corvette 62966.0 miles 53855$Explorer 13062.0 miles 44948$Maxima 6851.0 miles 49525$Camry 45892.0 miles 49556$Yukon 64224.0 miles 48854$G35 56462.0 miles 27308$
Corvette 22137.0 miles 16138$Explorer 7541.0 miles 23560$Maxima 54041.0 miles 32161$Camry 68026.0 miles 21560$Yukon 45031.0 miles 40003$G35 58544.0 miles 34420$
Corvette 20610.0 miles 46332$Explorer 25605.0 miles 38078$Maxima 34945.0 miles 22045$Camry 9384.0 miles 35108$Yukon 6032.0 miles 20693$G35 47238.0 miles 15644$
Corvette 7001.0 miles 32185$Explorer 67001.0 miles 25066$Maxima 76095.0 miles 50826$Camry 5649.0 miles 53863$Yukon 12445.0 miles 45577$G35 29410.0 miles 26646$

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