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 77928.0 miles 17191$Explorer 75014.0 miles 18750$Maxima 14404.0 miles 45398$Camry 22500.0 miles 20917$Yukon 48887.0 miles 32844$G35 52980.0 miles 27877$
Corvette 51881.0 miles 24030$Explorer 15310.0 miles 15106$Maxima 59184.0 miles 24095$Camry 38975.0 miles 45336$Yukon 60221.0 miles 18843$G35 6874.0 miles 33712$
Corvette 62838.0 miles 17340$Explorer 14029.0 miles 54949$Maxima 76962.0 miles 48580$Camry 47293.0 miles 35002$Yukon 69655.0 miles 40109$G35 37200.0 miles 22489$
Corvette 14124.0 miles 22898$Explorer 10818.0 miles 47887$Maxima 29596.0 miles 21384$Camry 39772.0 miles 28176$Yukon 5564.0 miles 41429$G35 73825.0 miles 35068$
Corvette 40301.0 miles 46019$Explorer 78101.0 miles 32682$Maxima 63189.0 miles 49693$Camry 51733.0 miles 51034$Yukon 58042.0 miles 42200$G35 16796.0 miles 20875$
Corvette 77346.0 miles 25909$Explorer 61396.0 miles 17453$Maxima 34865.0 miles 50373$Camry 68382.0 miles 46024$Yukon 29321.0 miles 37292$G35 67464.0 miles 31055$
Corvette 15384.0 miles 39875$Explorer 33281.0 miles 28365$Maxima 73195.0 miles 25815$Camry 36861.0 miles 45847$Yukon 7174.0 miles 17288$G35 53064.0 miles 26480$
Corvette 63082.0 miles 32113$Explorer 77038.0 miles 16145$Maxima 28919.0 miles 29224$Camry 5148.0 miles 23828$Yukon 38678.0 miles 16694$G35 72549.0 miles 38254$
Corvette 55468.0 miles 32686$Explorer 51757.0 miles 38453$Maxima 36904.0 miles 31727$Camry 6748.0 miles 52816$Yukon 15892.0 miles 44410$G35 68842.0 miles 53140$

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