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 57779.0 miles 44949$Explorer 64181.0 miles 48318$Maxima 33397.0 miles 36493$Camry 50519.0 miles 49901$Yukon 29001.0 miles 45567$G35 29498.0 miles 15853$
Corvette 56110.0 miles 49505$Explorer 76306.0 miles 39521$Maxima 33738.0 miles 50655$Camry 24761.0 miles 21795$Yukon 9436.0 miles 30789$G35 45210.0 miles 46024$
Corvette 57688.0 miles 18898$Explorer 26934.0 miles 40287$Maxima 35723.0 miles 44145$Camry 34112.0 miles 34095$Yukon 70635.0 miles 35440$G35 30318.0 miles 37190$
Corvette 48627.0 miles 19561$Explorer 20216.0 miles 42582$Maxima 46187.0 miles 33976$Camry 16862.0 miles 53558$Yukon 33886.0 miles 16024$G35 45001.0 miles 34402$
Corvette 45633.0 miles 42286$Explorer 28787.0 miles 28311$Maxima 39221.0 miles 29485$Camry 46965.0 miles 51269$Yukon 29742.0 miles 41254$G35 58656.0 miles 48556$
Corvette 61380.0 miles 41344$Explorer 38434.0 miles 41159$Maxima 77348.0 miles 15928$Camry 68111.0 miles 34680$Yukon 34745.0 miles 18370$G35 24839.0 miles 51846$
Corvette 39629.0 miles 40853$Explorer 34664.0 miles 44211$Maxima 7556.0 miles 22337$Camry 6485.0 miles 39337$Yukon 8856.0 miles 42411$G35 29825.0 miles 48650$
Corvette 63132.0 miles 15509$Explorer 70537.0 miles 30171$Maxima 37280.0 miles 18816$Camry 9674.0 miles 24190$Yukon 20432.0 miles 18545$G35 38970.0 miles 31844$
Corvette 68969.0 miles 49608$Explorer 42737.0 miles 47889$Maxima 75018.0 miles 31265$Camry 8195.0 miles 37102$Yukon 61020.0 miles 42476$G35 20301.0 miles 39957$

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