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 46887.0 miles 52113$Explorer 77466.0 miles 43879$Maxima 7199.0 miles 46179$Camry 71586.0 miles 28489$Yukon 31809.0 miles 18817$G35 77388.0 miles 49021$
Corvette 57891.0 miles 17595$Explorer 9901.0 miles 48800$Maxima 18602.0 miles 38389$Camry 54549.0 miles 41067$Yukon 72448.0 miles 54908$G35 30848.0 miles 54045$
Corvette 12886.0 miles 22244$Explorer 37287.0 miles 53774$Maxima 13777.0 miles 50929$Camry 50520.0 miles 20584$Yukon 43882.0 miles 25365$G35 76581.0 miles 28356$
Corvette 61804.0 miles 39688$Explorer 29737.0 miles 17086$Maxima 21108.0 miles 52556$Camry 25126.0 miles 46964$Yukon 54816.0 miles 53935$G35 51628.0 miles 33976$
Corvette 7063.0 miles 43501$Explorer 51824.0 miles 27864$Maxima 75054.0 miles 40298$Camry 37277.0 miles 52622$Yukon 42915.0 miles 25734$G35 57568.0 miles 52690$
Corvette 40948.0 miles 38181$Explorer 61174.0 miles 47132$Maxima 10810.0 miles 37638$Camry 55311.0 miles 39637$Yukon 15268.0 miles 39765$G35 63766.0 miles 25048$
Corvette 21642.0 miles 50733$Explorer 36135.0 miles 22942$Maxima 48597.0 miles 20942$Camry 22474.0 miles 50491$Yukon 7028.0 miles 49442$G35 46633.0 miles 42964$
Corvette 14688.0 miles 17848$Explorer 49092.0 miles 22935$Maxima 61235.0 miles 41360$Camry 70864.0 miles 45399$Yukon 9058.0 miles 50698$G35 35734.0 miles 35492$
Corvette 36849.0 miles 52448$Explorer 21026.0 miles 47412$Maxima 24434.0 miles 22340$Camry 25443.0 miles 26582$Yukon 6966.0 miles 50342$G35 21250.0 miles 28737$


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