PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
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
Corvette 63948.0 miles 43445$Explorer 75812.0 miles 21886$Maxima 18703.0 miles 31406$Camry 20974.0 miles 17216$Yukon 49075.0 miles 39446$G35 77012.0 miles 22528$
Corvette 12986.0 miles 51676$Explorer 25676.0 miles 23266$Maxima 45589.0 miles 45973$Camry 70006.0 miles 53762$Yukon 68090.0 miles 46015$G35 29711.0 miles 19502$
Corvette 31096.0 miles 42029$Explorer 54695.0 miles 15934$Maxima 35699.0 miles 29376$Camry 10673.0 miles 39498$Yukon 25016.0 miles 44194$G35 39323.0 miles 28371$
Corvette 43143.0 miles 34214$Explorer 35094.0 miles 26095$Maxima 58603.0 miles 54497$Camry 67609.0 miles 31501$Yukon 29415.0 miles 29763$G35 6175.0 miles 37844$
Corvette 51975.0 miles 29311$Explorer 49180.0 miles 49979$Maxima 14720.0 miles 52667$Camry 35820.0 miles 46984$Yukon 63033.0 miles 21559$G35 32484.0 miles 54758$
Corvette 23702.0 miles 30069$Explorer 57157.0 miles 23599$Maxima 6831.0 miles 15080$Camry 27987.0 miles 16015$Yukon 9278.0 miles 49997$G35 37839.0 miles 34142$
Corvette 13729.0 miles 15316$Explorer 29842.0 miles 16568$Maxima 55698.0 miles 25994$Camry 23726.0 miles 28937$Yukon 32482.0 miles 30310$G35 15924.0 miles 29488$
Corvette 65963.0 miles 51268$Explorer 50038.0 miles 24407$Maxima 60280.0 miles 25624$Camry 20805.0 miles 17377$Yukon 22178.0 miles 23684$G35 67158.0 miles 53131$
Corvette 58940.0 miles 47516$Explorer 37148.0 miles 51622$Maxima 33343.0 miles 40289$Camry 71934.0 miles 32949$Yukon 12102.0 miles 28350$G35 75464.0 miles 41704$

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