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 15329.0 miles 28864$Explorer 15530.0 miles 45355$Maxima 48697.0 miles 51212$Camry 47095.0 miles 27717$Yukon 17848.0 miles 26982$G35 19505.0 miles 37197$
Corvette 55476.0 miles 33373$Explorer 50377.0 miles 15813$Maxima 71141.0 miles 25497$Camry 41836.0 miles 44846$Yukon 41600.0 miles 16128$G35 50365.0 miles 32572$
Corvette 26856.0 miles 39015$Explorer 35739.0 miles 22936$Maxima 60222.0 miles 33269$Camry 20179.0 miles 36694$Yukon 68876.0 miles 45060$G35 73955.0 miles 17887$
Corvette 58301.0 miles 37685$Explorer 59374.0 miles 22154$Maxima 20219.0 miles 20919$Camry 15117.0 miles 49412$Yukon 33850.0 miles 30739$G35 44035.0 miles 15130$
Corvette 75044.0 miles 51221$Explorer 6312.0 miles 48039$Maxima 14984.0 miles 44614$Camry 48976.0 miles 32262$Yukon 62100.0 miles 41888$G35 47053.0 miles 46422$
Corvette 47874.0 miles 46682$Explorer 14923.0 miles 47121$Maxima 51852.0 miles 25498$Camry 52484.0 miles 43348$Yukon 69759.0 miles 32950$G35 73696.0 miles 15575$
Corvette 36311.0 miles 17580$Explorer 74655.0 miles 24075$Maxima 49543.0 miles 49495$Camry 23472.0 miles 47180$Yukon 9164.0 miles 52556$G35 57106.0 miles 26998$
Corvette 79636.0 miles 49791$Explorer 35146.0 miles 42821$Maxima 64930.0 miles 54962$Camry 33550.0 miles 47436$Yukon 75723.0 miles 37135$G35 36381.0 miles 28568$
Corvette 31180.0 miles 41880$Explorer 77915.0 miles 18619$Maxima 30180.0 miles 22923$Camry 37361.0 miles 18172$Yukon 63257.0 miles 39383$G35 26140.0 miles 29013$

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