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 62037.0 miles 48340$Explorer 79547.0 miles 45358$Maxima 10502.0 miles 25659$Camry 65099.0 miles 39613$Yukon 54066.0 miles 15769$G35 59885.0 miles 47132$
Corvette 33405.0 miles 21443$Explorer 40873.0 miles 48460$Maxima 14002.0 miles 37799$Camry 79094.0 miles 25845$Yukon 40152.0 miles 23280$G35 37826.0 miles 28802$
Corvette 38514.0 miles 18118$Explorer 51630.0 miles 22768$Maxima 59574.0 miles 44548$Camry 68112.0 miles 25764$Yukon 21769.0 miles 53616$G35 55550.0 miles 43720$
Corvette 66674.0 miles 33882$Explorer 31386.0 miles 49438$Maxima 73253.0 miles 48692$Camry 47709.0 miles 19802$Yukon 79976.0 miles 39752$G35 19245.0 miles 30268$
Corvette 37019.0 miles 36595$Explorer 28528.0 miles 48992$Maxima 22212.0 miles 16253$Camry 38598.0 miles 28173$Yukon 68291.0 miles 31875$G35 71811.0 miles 24621$
Corvette 44344.0 miles 51353$Explorer 7524.0 miles 45006$Maxima 61439.0 miles 40424$Camry 69593.0 miles 43041$Yukon 70493.0 miles 29955$G35 57258.0 miles 37997$
Corvette 73058.0 miles 50878$Explorer 78127.0 miles 28347$Maxima 29912.0 miles 39361$Camry 72012.0 miles 29233$Yukon 70423.0 miles 29632$G35 41403.0 miles 47489$
Corvette 26656.0 miles 16735$Explorer 54797.0 miles 42687$Maxima 50202.0 miles 36313$Camry 61805.0 miles 44466$Yukon 38897.0 miles 38544$G35 20490.0 miles 42952$
Corvette 59416.0 miles 39179$Explorer 6264.0 miles 18171$Maxima 53445.0 miles 44100$Camry 17109.0 miles 27361$Yukon 44504.0 miles 52500$G35 26368.0 miles 26451$

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