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 43566.0 miles 50855$Explorer 20926.0 miles 16396$Maxima 63827.0 miles 40894$Camry 7975.0 miles 16838$Yukon 8028.0 miles 21105$G35 8269.0 miles 35169$
Corvette 28969.0 miles 17710$Explorer 6549.0 miles 27940$Maxima 54332.0 miles 25550$Camry 75185.0 miles 40736$Yukon 19697.0 miles 38361$G35 13581.0 miles 20998$
Corvette 57487.0 miles 51322$Explorer 32248.0 miles 27691$Maxima 27008.0 miles 54981$Camry 73139.0 miles 51474$Yukon 78625.0 miles 28473$G35 10017.0 miles 49479$
Corvette 56512.0 miles 40876$Explorer 79965.0 miles 39892$Maxima 26107.0 miles 21021$Camry 14187.0 miles 24681$Yukon 18849.0 miles 53747$G35 21597.0 miles 52089$
Corvette 21960.0 miles 48323$Explorer 7015.0 miles 47514$Maxima 72695.0 miles 36617$Camry 75150.0 miles 22493$Yukon 6781.0 miles 45169$G35 41683.0 miles 37396$
Corvette 64831.0 miles 24299$Explorer 52155.0 miles 49417$Maxima 15387.0 miles 52781$Camry 42010.0 miles 44682$Yukon 56912.0 miles 35283$G35 20011.0 miles 52557$
Corvette 53097.0 miles 43261$Explorer 71214.0 miles 52051$Maxima 17531.0 miles 20560$Camry 74204.0 miles 54491$Yukon 32790.0 miles 44077$G35 52432.0 miles 20320$
Corvette 64021.0 miles 37418$Explorer 60848.0 miles 33205$Maxima 46679.0 miles 23854$Camry 50860.0 miles 40250$Yukon 24427.0 miles 36149$G35 37059.0 miles 35591$
Corvette 43532.0 miles 33393$Explorer 64347.0 miles 34231$Maxima 35888.0 miles 48146$Camry 66545.0 miles 41757$Yukon 55834.0 miles 46451$G35 62430.0 miles 29583$

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