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 47098.0 miles 15664$Explorer 49646.0 miles 30814$Maxima 59557.0 miles 29231$Camry 79742.0 miles 38037$Yukon 60467.0 miles 47571$G35 20155.0 miles 46486$
Corvette 8707.0 miles 22182$Explorer 70091.0 miles 30469$Maxima 18125.0 miles 45290$Camry 9915.0 miles 32623$Yukon 54129.0 miles 34592$G35 53450.0 miles 39053$
Corvette 24691.0 miles 45442$Explorer 35330.0 miles 29826$Maxima 68261.0 miles 32199$Camry 22854.0 miles 30751$Yukon 30347.0 miles 46395$G35 75477.0 miles 19069$
Corvette 71722.0 miles 26454$Explorer 9946.0 miles 23668$Maxima 58387.0 miles 21471$Camry 79785.0 miles 16770$Yukon 59311.0 miles 50168$G35 27389.0 miles 37974$
Corvette 54646.0 miles 54776$Explorer 6471.0 miles 15316$Maxima 63235.0 miles 27918$Camry 40345.0 miles 50020$Yukon 25225.0 miles 35491$G35 18980.0 miles 15324$
Corvette 50448.0 miles 17630$Explorer 68592.0 miles 41528$Maxima 40360.0 miles 15381$Camry 20535.0 miles 33647$Yukon 57519.0 miles 44504$G35 10180.0 miles 26940$
Corvette 42270.0 miles 27538$Explorer 29056.0 miles 44460$Maxima 70722.0 miles 30062$Camry 31385.0 miles 54515$Yukon 65763.0 miles 33667$G35 37633.0 miles 44709$
Corvette 73208.0 miles 31822$Explorer 15268.0 miles 28172$Maxima 25897.0 miles 53067$Camry 57731.0 miles 25938$Yukon 56912.0 miles 31547$G35 79487.0 miles 17390$
Corvette 52050.0 miles 18823$Explorer 31464.0 miles 16162$Maxima 13477.0 miles 15516$Camry 73473.0 miles 23418$Yukon 15542.0 miles 45816$G35 47381.0 miles 52795$


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