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 21611.0 miles 24932$Explorer 37124.0 miles 52110$Maxima 24087.0 miles 20667$Camry 74300.0 miles 38895$Yukon 33994.0 miles 50965$G35 73339.0 miles 35110$
Corvette 26276.0 miles 53098$Explorer 58899.0 miles 28641$Maxima 63891.0 miles 31384$Camry 6261.0 miles 52957$Yukon 28368.0 miles 45575$G35 57514.0 miles 34142$
Corvette 76496.0 miles 29575$Explorer 37159.0 miles 49178$Maxima 41739.0 miles 38363$Camry 17182.0 miles 54153$Yukon 65651.0 miles 20085$G35 12717.0 miles 33714$
Corvette 11676.0 miles 52609$Explorer 18027.0 miles 53505$Maxima 23243.0 miles 36532$Camry 71704.0 miles 16262$Yukon 19942.0 miles 26112$G35 10674.0 miles 52559$
Corvette 7382.0 miles 47299$Explorer 78179.0 miles 31984$Maxima 42546.0 miles 31341$Camry 42173.0 miles 29148$Yukon 39065.0 miles 34901$G35 30035.0 miles 43085$
Corvette 55924.0 miles 51295$Explorer 59340.0 miles 32977$Maxima 46214.0 miles 48702$Camry 33797.0 miles 19385$Yukon 42269.0 miles 21350$G35 61141.0 miles 35096$
Corvette 29529.0 miles 36359$Explorer 61863.0 miles 36204$Maxima 38229.0 miles 44567$Camry 46784.0 miles 16553$Yukon 54718.0 miles 48475$G35 44401.0 miles 29164$
Corvette 46436.0 miles 49122$Explorer 29895.0 miles 20496$Maxima 28092.0 miles 52104$Camry 50651.0 miles 29132$Yukon 74107.0 miles 15199$G35 58607.0 miles 23153$
Corvette 57396.0 miles 50674$Explorer 7881.0 miles 54745$Maxima 25177.0 miles 22148$Camry 49424.0 miles 18641$Yukon 39360.0 miles 51004$G35 31677.0 miles 41639$

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