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 48067.0 miles 26070$Explorer 45322.0 miles 16677$Maxima 36809.0 miles 39014$Camry 45576.0 miles 37674$Yukon 58548.0 miles 41029$G35 64728.0 miles 33097$
Corvette 76090.0 miles 40599$Explorer 16134.0 miles 51921$Maxima 55729.0 miles 16409$Camry 72438.0 miles 52913$Yukon 32537.0 miles 17033$G35 76511.0 miles 19179$
Corvette 70270.0 miles 52752$Explorer 66540.0 miles 24804$Maxima 67690.0 miles 24543$Camry 41048.0 miles 38789$Yukon 9975.0 miles 36675$G35 16267.0 miles 38587$
Corvette 29033.0 miles 54345$Explorer 22656.0 miles 53861$Maxima 35619.0 miles 22185$Camry 16070.0 miles 33646$Yukon 35568.0 miles 49039$G35 16952.0 miles 34282$
Corvette 34401.0 miles 21709$Explorer 60127.0 miles 33987$Maxima 16135.0 miles 32406$Camry 5864.0 miles 44119$Yukon 58394.0 miles 35807$G35 45858.0 miles 41170$
Corvette 16988.0 miles 30294$Explorer 78456.0 miles 17116$Maxima 77611.0 miles 38619$Camry 72325.0 miles 17296$Yukon 52253.0 miles 39247$G35 28958.0 miles 45024$
Corvette 33708.0 miles 27566$Explorer 49645.0 miles 54817$Maxima 11302.0 miles 18463$Camry 27671.0 miles 34309$Yukon 73568.0 miles 25883$G35 47637.0 miles 46006$
Corvette 25616.0 miles 52101$Explorer 17567.0 miles 53254$Maxima 74614.0 miles 51151$Camry 16512.0 miles 35010$Yukon 13032.0 miles 38583$G35 39946.0 miles 26572$
Corvette 20614.0 miles 40746$Explorer 70912.0 miles 49007$Maxima 45701.0 miles 54557$Camry 58738.0 miles 51075$Yukon 71234.0 miles 36788$G35 7319.0 miles 24824$


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