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 79791.0 miles 34755$Explorer 11122.0 miles 33787$Maxima 20510.0 miles 25380$Camry 8884.0 miles 32198$Yukon 32811.0 miles 23081$G35 13937.0 miles 22056$
Corvette 41289.0 miles 52360$Explorer 42526.0 miles 34092$Maxima 70389.0 miles 42126$Camry 23465.0 miles 50864$Yukon 56739.0 miles 44682$G35 12588.0 miles 24480$
Corvette 43452.0 miles 22350$Explorer 59986.0 miles 33053$Maxima 40112.0 miles 52531$Camry 69252.0 miles 36848$Yukon 74974.0 miles 18135$G35 54955.0 miles 28987$
Corvette 10882.0 miles 34167$Explorer 24497.0 miles 24241$Maxima 60827.0 miles 35997$Camry 50158.0 miles 30557$Yukon 56857.0 miles 25666$G35 25749.0 miles 40425$
Corvette 17466.0 miles 29449$Explorer 52149.0 miles 51529$Maxima 7141.0 miles 24770$Camry 59867.0 miles 20313$Yukon 74777.0 miles 48697$G35 69055.0 miles 33489$
Corvette 33807.0 miles 19120$Explorer 39616.0 miles 36485$Maxima 23326.0 miles 34339$Camry 51655.0 miles 48597$Yukon 25940.0 miles 41923$G35 69391.0 miles 52855$
Corvette 51289.0 miles 54257$Explorer 30376.0 miles 33057$Maxima 78550.0 miles 46718$Camry 75508.0 miles 16724$Yukon 71939.0 miles 19598$G35 57223.0 miles 40369$
Corvette 29951.0 miles 52680$Explorer 15890.0 miles 52442$Maxima 79947.0 miles 24639$Camry 38947.0 miles 23636$Yukon 44591.0 miles 26602$G35 32428.0 miles 27048$
Corvette 62355.0 miles 38601$Explorer 58502.0 miles 36962$Maxima 77638.0 miles 48775$Camry 38778.0 miles 38478$Yukon 67314.0 miles 53427$G35 75904.0 miles 22226$

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