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 11204.0 miles 35101$Explorer 32884.0 miles 51413$Maxima 60409.0 miles 35099$Camry 48317.0 miles 40716$Yukon 77282.0 miles 43335$G35 49886.0 miles 27096$
Corvette 51342.0 miles 40216$Explorer 70552.0 miles 54785$Maxima 40111.0 miles 31784$Camry 49245.0 miles 47434$Yukon 47827.0 miles 41331$G35 79343.0 miles 50388$
Corvette 26130.0 miles 23879$Explorer 70568.0 miles 41336$Maxima 16825.0 miles 21483$Camry 73439.0 miles 15740$Yukon 41361.0 miles 16837$G35 69734.0 miles 16916$
Corvette 34383.0 miles 34554$Explorer 53238.0 miles 22282$Maxima 37111.0 miles 46071$Camry 63791.0 miles 15784$Yukon 36980.0 miles 42617$G35 33580.0 miles 20469$
Corvette 41180.0 miles 26407$Explorer 62910.0 miles 54400$Maxima 27072.0 miles 19464$Camry 75680.0 miles 15817$Yukon 52816.0 miles 39955$G35 68971.0 miles 27133$
Corvette 29211.0 miles 18180$Explorer 60667.0 miles 48138$Maxima 30690.0 miles 16121$Camry 38161.0 miles 24891$Yukon 55136.0 miles 50373$G35 9973.0 miles 19777$
Corvette 27048.0 miles 40560$Explorer 14128.0 miles 15677$Maxima 12476.0 miles 50599$Camry 17705.0 miles 29084$Yukon 21322.0 miles 30827$G35 14724.0 miles 35462$
Corvette 14533.0 miles 46692$Explorer 16269.0 miles 54970$Maxima 52729.0 miles 46260$Camry 49053.0 miles 35526$Yukon 33803.0 miles 39245$G35 75371.0 miles 31431$
Corvette 20522.0 miles 48761$Explorer 9420.0 miles 54767$Maxima 8310.0 miles 51922$Camry 48711.0 miles 28747$Yukon 11101.0 miles 18189$G35 33260.0 miles 27000$

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