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 48476.0 miles 15253$Explorer 65538.0 miles 51387$Maxima 63224.0 miles 22793$Camry 15418.0 miles 39775$Yukon 47469.0 miles 17960$G35 55389.0 miles 21321$
Corvette 69617.0 miles 47747$Explorer 64777.0 miles 41033$Maxima 55999.0 miles 40863$Camry 43918.0 miles 36292$Yukon 53082.0 miles 17000$G35 45216.0 miles 24374$
Corvette 25927.0 miles 41884$Explorer 77629.0 miles 19362$Maxima 21013.0 miles 23587$Camry 6440.0 miles 16061$Yukon 71229.0 miles 41740$G35 25405.0 miles 48673$
Corvette 47605.0 miles 17704$Explorer 34146.0 miles 27820$Maxima 66760.0 miles 31128$Camry 50123.0 miles 43375$Yukon 50440.0 miles 37547$G35 20945.0 miles 39517$
Corvette 26836.0 miles 20531$Explorer 52590.0 miles 35681$Maxima 44270.0 miles 41387$Camry 45665.0 miles 21365$Yukon 59355.0 miles 35981$G35 59938.0 miles 52461$
Corvette 48480.0 miles 31285$Explorer 50432.0 miles 38113$Maxima 32286.0 miles 24652$Camry 36284.0 miles 34688$Yukon 8206.0 miles 20023$G35 6999.0 miles 36015$
Corvette 24710.0 miles 36414$Explorer 54092.0 miles 44346$Maxima 72672.0 miles 26345$Camry 71199.0 miles 35747$Yukon 61349.0 miles 40782$G35 5381.0 miles 24038$
Corvette 44888.0 miles 37185$Explorer 50326.0 miles 29468$Maxima 33280.0 miles 40957$Camry 15154.0 miles 53738$Yukon 8993.0 miles 30080$G35 37979.0 miles 51259$
Corvette 8656.0 miles 18669$Explorer 35632.0 miles 30071$Maxima 13373.0 miles 16323$Camry 33391.0 miles 39900$Yukon 8988.0 miles 33915$G35 53605.0 miles 36163$


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