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 38647.0 miles 52793$Explorer 38344.0 miles 17579$Maxima 12394.0 miles 44129$Camry 40681.0 miles 41857$Yukon 29742.0 miles 54099$G35 62109.0 miles 34533$
Corvette 15605.0 miles 16738$Explorer 74452.0 miles 31636$Maxima 51753.0 miles 46053$Camry 63281.0 miles 20397$Yukon 37077.0 miles 53482$G35 31445.0 miles 43093$
Corvette 10966.0 miles 31306$Explorer 59456.0 miles 32906$Maxima 27821.0 miles 30291$Camry 26565.0 miles 42180$Yukon 21183.0 miles 37324$G35 20910.0 miles 21101$
Corvette 24912.0 miles 16792$Explorer 32560.0 miles 45757$Maxima 58502.0 miles 25417$Camry 44848.0 miles 52574$Yukon 21955.0 miles 15103$G35 57988.0 miles 41898$
Corvette 71023.0 miles 16376$Explorer 34908.0 miles 54863$Maxima 64137.0 miles 42137$Camry 32054.0 miles 29379$Yukon 75473.0 miles 19880$G35 13992.0 miles 45750$
Corvette 7205.0 miles 39107$Explorer 76038.0 miles 30824$Maxima 58937.0 miles 22418$Camry 45332.0 miles 45178$Yukon 69318.0 miles 28271$G35 65551.0 miles 49511$
Corvette 49803.0 miles 34590$Explorer 60661.0 miles 34383$Maxima 20537.0 miles 24118$Camry 11991.0 miles 29582$Yukon 69454.0 miles 21293$G35 25276.0 miles 16343$
Corvette 17893.0 miles 33809$Explorer 13906.0 miles 46736$Maxima 37204.0 miles 38849$Camry 49965.0 miles 17405$Yukon 35575.0 miles 45316$G35 30898.0 miles 25606$
Corvette 57499.0 miles 48971$Explorer 29355.0 miles 24446$Maxima 34895.0 miles 15342$Camry 24151.0 miles 32434$Yukon 11935.0 miles 30495$G35 5041.0 miles 23555$

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