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 55855.0 miles 25461$Explorer 29770.0 miles 37727$Maxima 29262.0 miles 46776$Camry 77267.0 miles 23329$Yukon 31392.0 miles 23334$G35 75342.0 miles 40277$
Corvette 14218.0 miles 41799$Explorer 79966.0 miles 18838$Maxima 67646.0 miles 43411$Camry 67490.0 miles 16219$Yukon 72685.0 miles 47750$G35 38440.0 miles 15397$
Corvette 14393.0 miles 16261$Explorer 35717.0 miles 17280$Maxima 65032.0 miles 16279$Camry 39610.0 miles 19627$Yukon 55327.0 miles 28487$G35 7727.0 miles 53774$
Corvette 27930.0 miles 33153$Explorer 79165.0 miles 40129$Maxima 23485.0 miles 34211$Camry 58420.0 miles 30139$Yukon 69376.0 miles 15528$G35 73221.0 miles 39080$
Corvette 55984.0 miles 45545$Explorer 30513.0 miles 24292$Maxima 64806.0 miles 50101$Camry 66158.0 miles 48942$Yukon 50088.0 miles 20221$G35 14989.0 miles 17919$
Corvette 51400.0 miles 45128$Explorer 21864.0 miles 38320$Maxima 38738.0 miles 31309$Camry 19846.0 miles 28245$Yukon 77288.0 miles 21507$G35 75304.0 miles 41809$
Corvette 79889.0 miles 38633$Explorer 55862.0 miles 15034$Maxima 60375.0 miles 30395$Camry 60994.0 miles 21424$Yukon 71781.0 miles 26717$G35 14364.0 miles 49402$
Corvette 45549.0 miles 54858$Explorer 53239.0 miles 39051$Maxima 51478.0 miles 34370$Camry 78317.0 miles 54087$Yukon 25081.0 miles 54921$G35 37162.0 miles 31512$
Corvette 77687.0 miles 39431$Explorer 43906.0 miles 24399$Maxima 67975.0 miles 53098$Camry 54620.0 miles 46932$Yukon 76321.0 miles 51944$G35 59654.0 miles 48850$

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