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 40810.0 miles 36705$Explorer 43135.0 miles 17651$Maxima 21130.0 miles 29255$Camry 14516.0 miles 29434$Yukon 14428.0 miles 45367$G35 5675.0 miles 47776$
Corvette 13526.0 miles 30800$Explorer 16025.0 miles 27239$Maxima 73389.0 miles 19868$Camry 27314.0 miles 19362$Yukon 52584.0 miles 44611$G35 38212.0 miles 23023$
Corvette 40449.0 miles 32848$Explorer 54774.0 miles 21608$Maxima 52537.0 miles 21146$Camry 44998.0 miles 27050$Yukon 9782.0 miles 32856$G35 45984.0 miles 35542$
Corvette 41335.0 miles 19643$Explorer 20628.0 miles 41022$Maxima 20258.0 miles 43738$Camry 9201.0 miles 26262$Yukon 41559.0 miles 17852$G35 56468.0 miles 21232$
Corvette 31114.0 miles 44552$Explorer 68661.0 miles 45876$Maxima 63693.0 miles 45580$Camry 73992.0 miles 44158$Yukon 61792.0 miles 21104$G35 29136.0 miles 18382$
Corvette 56719.0 miles 19876$Explorer 75072.0 miles 54758$Maxima 48099.0 miles 42640$Camry 38460.0 miles 23498$Yukon 68510.0 miles 22734$G35 43287.0 miles 27909$
Corvette 41656.0 miles 48748$Explorer 65850.0 miles 21616$Maxima 59144.0 miles 18630$Camry 59222.0 miles 32379$Yukon 66565.0 miles 42082$G35 20042.0 miles 25040$
Corvette 65203.0 miles 42461$Explorer 68946.0 miles 36481$Maxima 17033.0 miles 21486$Camry 19906.0 miles 22358$Yukon 30922.0 miles 20071$G35 61503.0 miles 16056$
Corvette 69834.0 miles 27855$Explorer 31923.0 miles 31075$Maxima 26252.0 miles 33206$Camry 13669.0 miles 47868$Yukon 15298.0 miles 23401$G35 73381.0 miles 40026$

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