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 65872.0 miles 40602$Explorer 62606.0 miles 26780$Maxima 73948.0 miles 52834$Camry 27997.0 miles 49027$Yukon 74944.0 miles 36403$G35 63007.0 miles 40284$
Corvette 15837.0 miles 26050$Explorer 70796.0 miles 33870$Maxima 14151.0 miles 44142$Camry 56152.0 miles 50558$Yukon 31790.0 miles 43857$G35 63549.0 miles 24538$
Corvette 14197.0 miles 16642$Explorer 73600.0 miles 26406$Maxima 38830.0 miles 53735$Camry 51017.0 miles 21046$Yukon 67106.0 miles 24910$G35 36273.0 miles 53289$
Corvette 55899.0 miles 29338$Explorer 73678.0 miles 53983$Maxima 31743.0 miles 41335$Camry 15901.0 miles 51092$Yukon 64795.0 miles 20270$G35 6800.0 miles 43515$
Corvette 48020.0 miles 40137$Explorer 36688.0 miles 43845$Maxima 28281.0 miles 52552$Camry 53799.0 miles 27176$Yukon 67025.0 miles 42780$G35 43848.0 miles 17403$
Corvette 47952.0 miles 51593$Explorer 9532.0 miles 46010$Maxima 25831.0 miles 37035$Camry 26089.0 miles 53551$Yukon 70702.0 miles 53016$G35 74813.0 miles 20937$
Corvette 38709.0 miles 39373$Explorer 52570.0 miles 40538$Maxima 67184.0 miles 34764$Camry 62242.0 miles 16911$Yukon 15827.0 miles 48906$G35 67619.0 miles 50818$
Corvette 9521.0 miles 37330$Explorer 49465.0 miles 31392$Maxima 45879.0 miles 51280$Camry 75354.0 miles 45146$Yukon 12925.0 miles 35761$G35 30187.0 miles 39743$
Corvette 11625.0 miles 15987$Explorer 76966.0 miles 20211$Maxima 69163.0 miles 22072$Camry 60761.0 miles 35676$Yukon 15587.0 miles 26990$G35 55466.0 miles 36127$

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