PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
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
Chevrolet
Ford
Nissan
Toyota
GMC
Infiniti
Corvette 9898.0 miles 45606$Explorer 64751.0 miles 39967$Maxima 20135.0 miles 38741$Camry 17333.0 miles 18633$Yukon 59132.0 miles 54533$G35 55502.0 miles 29658$
Corvette 69343.0 miles 38780$Explorer 25704.0 miles 53213$Maxima 12270.0 miles 26248$Camry 5554.0 miles 48959$Yukon 53925.0 miles 21183$G35 73274.0 miles 33036$
Corvette 78732.0 miles 36627$Explorer 77155.0 miles 26157$Maxima 49985.0 miles 19739$Camry 30738.0 miles 38833$Yukon 9632.0 miles 50103$G35 46482.0 miles 44052$
Corvette 28187.0 miles 20700$Explorer 68322.0 miles 32687$Maxima 48112.0 miles 39944$Camry 36068.0 miles 52511$Yukon 74942.0 miles 21363$G35 10008.0 miles 47995$
Corvette 67148.0 miles 23414$Explorer 64599.0 miles 28964$Maxima 13765.0 miles 43044$Camry 72619.0 miles 38529$Yukon 27615.0 miles 20401$G35 21385.0 miles 47033$
Corvette 68201.0 miles 46937$Explorer 69905.0 miles 46878$Maxima 19627.0 miles 17325$Camry 52416.0 miles 42132$Yukon 18394.0 miles 16416$G35 50499.0 miles 27259$
Corvette 8302.0 miles 27794$Explorer 44875.0 miles 16917$Maxima 38407.0 miles 25195$Camry 32130.0 miles 53597$Yukon 34664.0 miles 27746$G35 75354.0 miles 50355$
Corvette 31633.0 miles 27606$Explorer 72474.0 miles 26680$Maxima 45721.0 miles 15285$Camry 44287.0 miles 26911$Yukon 49180.0 miles 21449$G35 16084.0 miles 46147$
Corvette 37683.0 miles 33140$Explorer 48662.0 miles 21191$Maxima 71226.0 miles 42726$Camry 47034.0 miles 50015$Yukon 54753.0 miles 48010$G35 66774.0 miles 19233$


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