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 71619.0 miles 53152$Explorer 37512.0 miles 46953$Maxima 38816.0 miles 53607$Camry 48202.0 miles 20166$Yukon 46558.0 miles 38955$G35 22522.0 miles 47209$
Corvette 22161.0 miles 40522$Explorer 40342.0 miles 35566$Maxima 41706.0 miles 46006$Camry 26421.0 miles 28070$Yukon 15509.0 miles 15556$G35 24429.0 miles 52869$
Corvette 58135.0 miles 49818$Explorer 47181.0 miles 53625$Maxima 56755.0 miles 22420$Camry 20997.0 miles 45770$Yukon 42435.0 miles 41411$G35 7035.0 miles 44807$
Corvette 10127.0 miles 22157$Explorer 33732.0 miles 31202$Maxima 72186.0 miles 39943$Camry 44714.0 miles 38958$Yukon 70783.0 miles 39046$G35 18867.0 miles 28533$
Corvette 45027.0 miles 22811$Explorer 75162.0 miles 39943$Maxima 37167.0 miles 48892$Camry 63169.0 miles 41089$Yukon 26325.0 miles 53016$G35 24969.0 miles 24217$
Corvette 76276.0 miles 36030$Explorer 9165.0 miles 44995$Maxima 74285.0 miles 52011$Camry 63959.0 miles 44490$Yukon 16171.0 miles 21283$G35 69173.0 miles 49772$
Corvette 5236.0 miles 35651$Explorer 68136.0 miles 24883$Maxima 23231.0 miles 27341$Camry 61760.0 miles 19674$Yukon 30997.0 miles 46712$G35 59985.0 miles 27661$
Corvette 26820.0 miles 47881$Explorer 6354.0 miles 17091$Maxima 39088.0 miles 32013$Camry 40726.0 miles 47918$Yukon 77747.0 miles 19012$G35 25093.0 miles 15961$
Corvette 35606.0 miles 36380$Explorer 60829.0 miles 50397$Maxima 66545.0 miles 22737$Camry 27832.0 miles 51277$Yukon 16325.0 miles 37898$G35 39991.0 miles 28650$

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