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 9147.0 miles 34482$Explorer 74003.0 miles 36362$Maxima 47559.0 miles 31704$Camry 74915.0 miles 16429$Yukon 72288.0 miles 29113$G35 75392.0 miles 50955$
Corvette 55015.0 miles 44713$Explorer 54924.0 miles 37630$Maxima 25764.0 miles 39229$Camry 76658.0 miles 34288$Yukon 59152.0 miles 30459$G35 43543.0 miles 46452$
Corvette 31419.0 miles 36066$Explorer 48260.0 miles 44818$Maxima 27415.0 miles 36115$Camry 78374.0 miles 36781$Yukon 25121.0 miles 30710$G35 60230.0 miles 40491$
Corvette 61189.0 miles 52829$Explorer 71233.0 miles 34963$Maxima 30138.0 miles 50372$Camry 7254.0 miles 37546$Yukon 60062.0 miles 25768$G35 35321.0 miles 28888$
Corvette 68501.0 miles 54955$Explorer 78486.0 miles 34756$Maxima 37346.0 miles 39767$Camry 44596.0 miles 18976$Yukon 49446.0 miles 41714$G35 31682.0 miles 35520$
Corvette 57422.0 miles 28963$Explorer 41855.0 miles 21584$Maxima 57914.0 miles 54910$Camry 67848.0 miles 21764$Yukon 49566.0 miles 20485$G35 52418.0 miles 26596$
Corvette 52756.0 miles 45293$Explorer 46057.0 miles 48602$Maxima 14507.0 miles 41048$Camry 76872.0 miles 36306$Yukon 7558.0 miles 16712$G35 15978.0 miles 53316$
Corvette 63885.0 miles 45761$Explorer 10371.0 miles 27907$Maxima 53744.0 miles 16503$Camry 31372.0 miles 32997$Yukon 74035.0 miles 30961$G35 21097.0 miles 26959$
Corvette 25399.0 miles 43703$Explorer 17399.0 miles 39177$Maxima 67669.0 miles 50968$Camry 76233.0 miles 32724$Yukon 42970.0 miles 29725$G35 44903.0 miles 24073$


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