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 6486.0 miles 32026$Explorer 78476.0 miles 46052$Maxima 40505.0 miles 24373$Camry 8442.0 miles 22585$Yukon 36404.0 miles 19967$G35 5624.0 miles 36787$
Corvette 46501.0 miles 48058$Explorer 30783.0 miles 20241$Maxima 24581.0 miles 38653$Camry 69791.0 miles 32634$Yukon 57353.0 miles 22378$G35 53019.0 miles 53741$
Corvette 23952.0 miles 38364$Explorer 75481.0 miles 35826$Maxima 64484.0 miles 45057$Camry 13405.0 miles 15211$Yukon 55600.0 miles 33800$G35 60393.0 miles 26016$
Corvette 14551.0 miles 25917$Explorer 66409.0 miles 42429$Maxima 32668.0 miles 15329$Camry 30387.0 miles 38733$Yukon 32750.0 miles 43343$G35 20963.0 miles 43108$
Corvette 46640.0 miles 37832$Explorer 48648.0 miles 20599$Maxima 59743.0 miles 51789$Camry 62935.0 miles 22922$Yukon 24362.0 miles 48237$G35 31591.0 miles 20611$
Corvette 77731.0 miles 51418$Explorer 78000.0 miles 52993$Maxima 32225.0 miles 15444$Camry 10383.0 miles 38411$Yukon 30128.0 miles 21996$G35 61262.0 miles 35941$
Corvette 25695.0 miles 50124$Explorer 11141.0 miles 39515$Maxima 61984.0 miles 23550$Camry 11020.0 miles 31673$Yukon 69787.0 miles 50850$G35 13646.0 miles 54801$
Corvette 41246.0 miles 31481$Explorer 23627.0 miles 34251$Maxima 19046.0 miles 48371$Camry 22547.0 miles 31329$Yukon 15597.0 miles 31624$G35 54702.0 miles 19376$
Corvette 68870.0 miles 16308$Explorer 50078.0 miles 54218$Maxima 11537.0 miles 20439$Camry 72754.0 miles 34293$Yukon 24892.0 miles 35823$G35 31531.0 miles 35273$


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