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 35634.0 miles 35288$Explorer 22647.0 miles 16202$Maxima 33575.0 miles 30231$Camry 20750.0 miles 51808$Yukon 11590.0 miles 44979$G35 21853.0 miles 24766$
Corvette 77954.0 miles 39166$Explorer 27679.0 miles 27115$Maxima 54675.0 miles 42364$Camry 50982.0 miles 19494$Yukon 24968.0 miles 16968$G35 68466.0 miles 47656$
Corvette 77836.0 miles 20464$Explorer 69098.0 miles 35437$Maxima 71017.0 miles 17626$Camry 69299.0 miles 19817$Yukon 75591.0 miles 54943$G35 57939.0 miles 36669$
Corvette 56431.0 miles 29627$Explorer 50417.0 miles 49325$Maxima 12860.0 miles 45695$Camry 52719.0 miles 46338$Yukon 57322.0 miles 51103$G35 70719.0 miles 41879$
Corvette 51623.0 miles 35189$Explorer 48713.0 miles 29725$Maxima 60241.0 miles 19304$Camry 15763.0 miles 42678$Yukon 50993.0 miles 52489$G35 59540.0 miles 32744$
Corvette 38578.0 miles 17058$Explorer 23112.0 miles 46045$Maxima 34974.0 miles 40464$Camry 27539.0 miles 48680$Yukon 60286.0 miles 25925$G35 55673.0 miles 26974$
Corvette 36371.0 miles 47133$Explorer 28822.0 miles 33726$Maxima 36371.0 miles 24684$Camry 23830.0 miles 18045$Yukon 46324.0 miles 18292$G35 58408.0 miles 54740$
Corvette 34421.0 miles 42040$Explorer 25580.0 miles 38689$Maxima 11510.0 miles 22334$Camry 5335.0 miles 23806$Yukon 69812.0 miles 38941$G35 54231.0 miles 39084$
Corvette 69303.0 miles 42935$Explorer 64864.0 miles 38387$Maxima 8390.0 miles 31940$Camry 58903.0 miles 39599$Yukon 24363.0 miles 46845$G35 45380.0 miles 41248$


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