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 48750.0 miles 23593$Explorer 49311.0 miles 41004$Maxima 70866.0 miles 25025$Camry 23235.0 miles 39448$Yukon 62418.0 miles 17453$G35 62178.0 miles 49507$
Corvette 7185.0 miles 40511$Explorer 78199.0 miles 18429$Maxima 20652.0 miles 29770$Camry 61762.0 miles 26394$Yukon 36070.0 miles 38507$G35 16357.0 miles 38331$
Corvette 5070.0 miles 27145$Explorer 61839.0 miles 54415$Maxima 6072.0 miles 32889$Camry 46625.0 miles 31737$Yukon 65024.0 miles 17418$G35 47796.0 miles 18876$
Corvette 27377.0 miles 48282$Explorer 19617.0 miles 39927$Maxima 57545.0 miles 30263$Camry 68045.0 miles 35018$Yukon 77002.0 miles 26640$G35 65688.0 miles 30167$
Corvette 77313.0 miles 29203$Explorer 59498.0 miles 26368$Maxima 77506.0 miles 27608$Camry 46632.0 miles 29674$Yukon 37158.0 miles 47108$G35 71472.0 miles 23785$
Corvette 72095.0 miles 41776$Explorer 38969.0 miles 32729$Maxima 56305.0 miles 17157$Camry 7511.0 miles 35172$Yukon 37197.0 miles 31126$G35 55012.0 miles 33852$
Corvette 61684.0 miles 15845$Explorer 45010.0 miles 35359$Maxima 19447.0 miles 40515$Camry 52620.0 miles 49326$Yukon 21466.0 miles 15528$G35 22448.0 miles 22733$
Corvette 23596.0 miles 32493$Explorer 45961.0 miles 23266$Maxima 56066.0 miles 27527$Camry 21493.0 miles 28389$Yukon 53179.0 miles 37674$G35 21252.0 miles 15141$
Corvette 10771.0 miles 52633$Explorer 47067.0 miles 47243$Maxima 31122.0 miles 19673$Camry 65717.0 miles 15664$Yukon 11795.0 miles 43972$G35 18858.0 miles 52216$


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