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 37074.0 miles 32079$Explorer 16045.0 miles 18472$Maxima 40423.0 miles 30955$Camry 11658.0 miles 17855$Yukon 35397.0 miles 40296$G35 34764.0 miles 52417$
Corvette 62589.0 miles 26223$Explorer 50326.0 miles 25829$Maxima 52145.0 miles 27572$Camry 45521.0 miles 41959$Yukon 30891.0 miles 39571$G35 60041.0 miles 20146$
Corvette 67742.0 miles 47812$Explorer 31938.0 miles 40173$Maxima 16018.0 miles 50488$Camry 14914.0 miles 16408$Yukon 53358.0 miles 28951$G35 71706.0 miles 53007$
Corvette 58587.0 miles 49629$Explorer 63686.0 miles 42375$Maxima 16879.0 miles 22834$Camry 33242.0 miles 23594$Yukon 60478.0 miles 29223$G35 10574.0 miles 53161$
Corvette 39682.0 miles 40874$Explorer 59531.0 miles 41667$Maxima 50806.0 miles 53636$Camry 55639.0 miles 41220$Yukon 59106.0 miles 52727$G35 21532.0 miles 26057$
Corvette 40927.0 miles 43637$Explorer 76932.0 miles 25744$Maxima 9126.0 miles 44725$Camry 16369.0 miles 38671$Yukon 16831.0 miles 44958$G35 39091.0 miles 25241$
Corvette 12265.0 miles 51556$Explorer 19036.0 miles 33010$Maxima 68365.0 miles 49464$Camry 61812.0 miles 43706$Yukon 60557.0 miles 29738$G35 55390.0 miles 19996$
Corvette 29389.0 miles 27707$Explorer 33454.0 miles 45877$Maxima 74848.0 miles 37666$Camry 79471.0 miles 52329$Yukon 35667.0 miles 39832$G35 35562.0 miles 24282$
Corvette 6520.0 miles 42444$Explorer 37537.0 miles 24698$Maxima 41642.0 miles 36937$Camry 55358.0 miles 41379$Yukon 61110.0 miles 41136$G35 26687.0 miles 52632$

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