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 58754.0 miles 34993$Explorer 7201.0 miles 53645$Maxima 38476.0 miles 19704$Camry 78663.0 miles 48967$Yukon 49986.0 miles 25833$G35 12280.0 miles 16884$
Corvette 5126.0 miles 47410$Explorer 47763.0 miles 33977$Maxima 26733.0 miles 17964$Camry 45659.0 miles 51368$Yukon 58305.0 miles 17761$G35 37623.0 miles 46602$
Corvette 50751.0 miles 44695$Explorer 23405.0 miles 54960$Maxima 49947.0 miles 50122$Camry 16827.0 miles 23600$Yukon 33732.0 miles 29248$G35 74536.0 miles 33816$
Corvette 19485.0 miles 29632$Explorer 33312.0 miles 29636$Maxima 30009.0 miles 22811$Camry 14839.0 miles 39988$Yukon 16786.0 miles 24726$G35 52305.0 miles 21835$
Corvette 27923.0 miles 32505$Explorer 66134.0 miles 53570$Maxima 15072.0 miles 36161$Camry 53615.0 miles 40681$Yukon 6335.0 miles 50741$G35 42625.0 miles 22714$
Corvette 12256.0 miles 26959$Explorer 9519.0 miles 35094$Maxima 5117.0 miles 30863$Camry 30381.0 miles 16655$Yukon 42953.0 miles 34505$G35 5716.0 miles 36279$
Corvette 7412.0 miles 28715$Explorer 5625.0 miles 42920$Maxima 45295.0 miles 48323$Camry 53414.0 miles 32285$Yukon 65029.0 miles 46707$G35 15381.0 miles 24570$
Corvette 45982.0 miles 25214$Explorer 68973.0 miles 42313$Maxima 16509.0 miles 47456$Camry 47347.0 miles 33039$Yukon 38148.0 miles 18674$G35 8733.0 miles 26993$
Corvette 55270.0 miles 22596$Explorer 71812.0 miles 16467$Maxima 77798.0 miles 42440$Camry 61160.0 miles 31081$Yukon 21555.0 miles 19396$G35 79237.0 miles 16666$


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