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 8557.0 miles 30137$Explorer 44435.0 miles 31320$Maxima 11648.0 miles 32487$Camry 50978.0 miles 32811$Yukon 36477.0 miles 39303$G35 11328.0 miles 47082$
Corvette 13634.0 miles 33661$Explorer 72371.0 miles 53663$Maxima 42974.0 miles 34883$Camry 25105.0 miles 49534$Yukon 74642.0 miles 19042$G35 18383.0 miles 38075$
Corvette 15491.0 miles 26703$Explorer 67353.0 miles 54553$Maxima 15135.0 miles 22019$Camry 24530.0 miles 21226$Yukon 69457.0 miles 52470$G35 24945.0 miles 17716$
Corvette 17618.0 miles 35405$Explorer 27310.0 miles 51908$Maxima 26414.0 miles 40988$Camry 5756.0 miles 17730$Yukon 52826.0 miles 39806$G35 53434.0 miles 37084$
Corvette 20338.0 miles 38548$Explorer 58324.0 miles 24376$Maxima 26587.0 miles 25696$Camry 18892.0 miles 42455$Yukon 5068.0 miles 33479$G35 79875.0 miles 53892$
Corvette 25171.0 miles 27653$Explorer 39742.0 miles 25992$Maxima 48638.0 miles 38040$Camry 73220.0 miles 37917$Yukon 32713.0 miles 26175$G35 40383.0 miles 44064$
Corvette 37821.0 miles 42129$Explorer 16900.0 miles 39182$Maxima 72874.0 miles 33640$Camry 79271.0 miles 43957$Yukon 26325.0 miles 43576$G35 65667.0 miles 43683$
Corvette 58760.0 miles 52072$Explorer 70620.0 miles 26562$Maxima 79033.0 miles 40580$Camry 79513.0 miles 18368$Yukon 14688.0 miles 47102$G35 70379.0 miles 16255$
Corvette 74439.0 miles 30441$Explorer 24011.0 miles 31820$Maxima 31659.0 miles 20164$Camry 18322.0 miles 49414$Yukon 21360.0 miles 49065$G35 50000.0 miles 45270$

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