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 9950.0 miles 21523$Explorer 42807.0 miles 45612$Maxima 10019.0 miles 27048$Camry 16886.0 miles 48353$Yukon 40222.0 miles 27489$G35 36449.0 miles 46358$
Corvette 9669.0 miles 34397$Explorer 70210.0 miles 44371$Maxima 27684.0 miles 46870$Camry 31454.0 miles 52913$Yukon 5068.0 miles 43155$G35 36211.0 miles 19708$
Corvette 16286.0 miles 22581$Explorer 9130.0 miles 28938$Maxima 7590.0 miles 49940$Camry 7872.0 miles 34046$Yukon 16745.0 miles 29852$G35 10043.0 miles 48942$
Corvette 72196.0 miles 25004$Explorer 74074.0 miles 15180$Maxima 66117.0 miles 49739$Camry 48785.0 miles 45902$Yukon 41793.0 miles 49587$G35 76540.0 miles 25085$
Corvette 18944.0 miles 25437$Explorer 62125.0 miles 40935$Maxima 21142.0 miles 54539$Camry 6197.0 miles 52875$Yukon 75014.0 miles 18510$G35 42740.0 miles 36825$
Corvette 53895.0 miles 27081$Explorer 56130.0 miles 34630$Maxima 71288.0 miles 20632$Camry 75763.0 miles 46212$Yukon 75587.0 miles 26512$G35 45224.0 miles 48719$
Corvette 9353.0 miles 46247$Explorer 36673.0 miles 19842$Maxima 27378.0 miles 32006$Camry 61584.0 miles 15477$Yukon 27687.0 miles 44087$G35 22565.0 miles 16550$
Corvette 60307.0 miles 38017$Explorer 5156.0 miles 34453$Maxima 27887.0 miles 46782$Camry 20166.0 miles 42141$Yukon 42658.0 miles 31806$G35 37389.0 miles 30241$
Corvette 65636.0 miles 41673$Explorer 42835.0 miles 42801$Maxima 21923.0 miles 30022$Camry 43666.0 miles 20152$Yukon 40537.0 miles 24016$G35 54238.0 miles 23000$


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