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 74081.0 miles 43937$Explorer 40044.0 miles 31905$Maxima 68299.0 miles 31364$Camry 28929.0 miles 28018$Yukon 56670.0 miles 31589$G35 5444.0 miles 16994$
Corvette 61686.0 miles 21328$Explorer 16948.0 miles 33372$Maxima 26553.0 miles 18031$Camry 19318.0 miles 38668$Yukon 47840.0 miles 53737$G35 6643.0 miles 46355$
Corvette 75071.0 miles 37936$Explorer 11582.0 miles 37354$Maxima 23246.0 miles 27072$Camry 28875.0 miles 24614$Yukon 67923.0 miles 25605$G35 67089.0 miles 49024$
Corvette 58084.0 miles 17454$Explorer 65075.0 miles 23242$Maxima 13617.0 miles 42895$Camry 19738.0 miles 25657$Yukon 12321.0 miles 23606$G35 49814.0 miles 39355$
Corvette 79619.0 miles 31358$Explorer 26792.0 miles 29156$Maxima 28358.0 miles 27911$Camry 55262.0 miles 48920$Yukon 52233.0 miles 22170$G35 58170.0 miles 37767$
Corvette 30626.0 miles 26672$Explorer 59339.0 miles 31903$Maxima 14250.0 miles 46724$Camry 42245.0 miles 33032$Yukon 48603.0 miles 50460$G35 50368.0 miles 33695$
Corvette 25675.0 miles 19460$Explorer 49419.0 miles 48441$Maxima 56180.0 miles 33441$Camry 76103.0 miles 39607$Yukon 57945.0 miles 27997$G35 75303.0 miles 40181$
Corvette 32401.0 miles 31443$Explorer 16177.0 miles 38061$Maxima 12275.0 miles 45990$Camry 74026.0 miles 44923$Yukon 59054.0 miles 35440$G35 58596.0 miles 37076$
Corvette 12006.0 miles 18053$Explorer 14130.0 miles 47568$Maxima 69428.0 miles 25823$Camry 35542.0 miles 32162$Yukon 56388.0 miles 21842$G35 47834.0 miles 33291$

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