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 23814.0 miles 44346$Explorer 48553.0 miles 52968$Maxima 67883.0 miles 25690$Camry 69507.0 miles 33950$Yukon 32873.0 miles 42685$G35 40269.0 miles 27167$
Corvette 79950.0 miles 52718$Explorer 46387.0 miles 39392$Maxima 17142.0 miles 24056$Camry 27308.0 miles 20290$Yukon 55032.0 miles 42659$G35 68324.0 miles 25405$
Corvette 36728.0 miles 50161$Explorer 63783.0 miles 46172$Maxima 68922.0 miles 32227$Camry 39773.0 miles 47558$Yukon 28101.0 miles 44657$G35 38066.0 miles 20977$
Corvette 50948.0 miles 41661$Explorer 35771.0 miles 46892$Maxima 36378.0 miles 37924$Camry 11425.0 miles 54818$Yukon 66718.0 miles 54234$G35 52744.0 miles 17262$
Corvette 8399.0 miles 25844$Explorer 58413.0 miles 25807$Maxima 43181.0 miles 15744$Camry 26446.0 miles 49082$Yukon 52148.0 miles 25126$G35 18973.0 miles 48735$
Corvette 43353.0 miles 19858$Explorer 26766.0 miles 42332$Maxima 54669.0 miles 47084$Camry 60322.0 miles 41000$Yukon 14873.0 miles 35004$G35 6998.0 miles 50810$
Corvette 69978.0 miles 42879$Explorer 14163.0 miles 16357$Maxima 13481.0 miles 26949$Camry 55334.0 miles 32133$Yukon 74410.0 miles 41257$G35 10596.0 miles 49045$
Corvette 19357.0 miles 46524$Explorer 40091.0 miles 41866$Maxima 11154.0 miles 42372$Camry 26697.0 miles 42362$Yukon 25158.0 miles 33965$G35 37819.0 miles 46633$
Corvette 25821.0 miles 36825$Explorer 22412.0 miles 17496$Maxima 13033.0 miles 21542$Camry 69096.0 miles 27098$Yukon 31765.0 miles 37794$G35 55294.0 miles 17555$

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