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 54375.0 miles 50141$Explorer 30795.0 miles 26110$Maxima 76455.0 miles 32303$Camry 59518.0 miles 31365$Yukon 27543.0 miles 48798$G35 57160.0 miles 42015$
Corvette 30657.0 miles 22739$Explorer 40892.0 miles 35946$Maxima 26454.0 miles 29218$Camry 44165.0 miles 35651$Yukon 68107.0 miles 50559$G35 23814.0 miles 39650$
Corvette 8937.0 miles 21596$Explorer 67949.0 miles 36688$Maxima 50123.0 miles 47502$Camry 56736.0 miles 40280$Yukon 69651.0 miles 19292$G35 25843.0 miles 19074$
Corvette 37238.0 miles 26180$Explorer 39792.0 miles 44020$Maxima 46095.0 miles 51454$Camry 55757.0 miles 48367$Yukon 20938.0 miles 34137$G35 16492.0 miles 25047$
Corvette 21209.0 miles 24938$Explorer 55360.0 miles 16088$Maxima 21934.0 miles 42857$Camry 77884.0 miles 30011$Yukon 62215.0 miles 51033$G35 50887.0 miles 48780$
Corvette 37072.0 miles 34246$Explorer 66109.0 miles 20263$Maxima 21553.0 miles 15907$Camry 73885.0 miles 47014$Yukon 65779.0 miles 43277$G35 65104.0 miles 43510$
Corvette 41100.0 miles 42656$Explorer 38397.0 miles 21075$Maxima 57935.0 miles 53851$Camry 29741.0 miles 52606$Yukon 10074.0 miles 36045$G35 18093.0 miles 39078$
Corvette 76695.0 miles 23782$Explorer 64726.0 miles 50372$Maxima 23146.0 miles 21124$Camry 61981.0 miles 49491$Yukon 5025.0 miles 34248$G35 31593.0 miles 28275$
Corvette 16533.0 miles 39182$Explorer 39250.0 miles 47066$Maxima 27635.0 miles 51522$Camry 34739.0 miles 35827$Yukon 75105.0 miles 26161$G35 33406.0 miles 25391$


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