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 42127.0 miles 43904$Explorer 32396.0 miles 23356$Maxima 44265.0 miles 26096$Camry 36071.0 miles 41119$Yukon 56461.0 miles 46872$G35 38891.0 miles 51386$
Corvette 23131.0 miles 40957$Explorer 34111.0 miles 52493$Maxima 49842.0 miles 15665$Camry 72433.0 miles 32723$Yukon 44054.0 miles 40662$G35 11882.0 miles 38083$
Corvette 31298.0 miles 38060$Explorer 17944.0 miles 51622$Maxima 8354.0 miles 53773$Camry 28020.0 miles 44629$Yukon 54997.0 miles 21021$G35 62674.0 miles 17771$
Corvette 13674.0 miles 46135$Explorer 69573.0 miles 52629$Maxima 34076.0 miles 47566$Camry 68076.0 miles 43005$Yukon 73384.0 miles 30466$G35 70319.0 miles 53463$
Corvette 36072.0 miles 48173$Explorer 73946.0 miles 20589$Maxima 72127.0 miles 34267$Camry 58562.0 miles 20274$Yukon 22276.0 miles 46023$G35 44289.0 miles 53733$
Corvette 62976.0 miles 52737$Explorer 33893.0 miles 18678$Maxima 19649.0 miles 53789$Camry 61199.0 miles 29867$Yukon 16584.0 miles 27597$G35 27500.0 miles 35493$
Corvette 38852.0 miles 36686$Explorer 33132.0 miles 27491$Maxima 47934.0 miles 27213$Camry 8430.0 miles 36200$Yukon 65015.0 miles 49393$G35 22512.0 miles 16123$
Corvette 12128.0 miles 29890$Explorer 11658.0 miles 41409$Maxima 39548.0 miles 44717$Camry 61831.0 miles 53118$Yukon 26732.0 miles 21674$G35 18477.0 miles 41368$
Corvette 69442.0 miles 19566$Explorer 44844.0 miles 28616$Maxima 70141.0 miles 16919$Camry 14729.0 miles 15410$Yukon 67537.0 miles 16364$G35 27127.0 miles 31696$


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