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 9869.0 miles 52725$Explorer 74329.0 miles 49640$Maxima 41228.0 miles 18810$Camry 65123.0 miles 53201$Yukon 72853.0 miles 44518$G35 49704.0 miles 50771$
Corvette 58664.0 miles 29229$Explorer 22208.0 miles 31324$Maxima 59674.0 miles 26891$Camry 32664.0 miles 52857$Yukon 18230.0 miles 24749$G35 48567.0 miles 18725$
Corvette 71526.0 miles 31396$Explorer 36509.0 miles 43452$Maxima 61773.0 miles 34603$Camry 67464.0 miles 48544$Yukon 25212.0 miles 54560$G35 67836.0 miles 46842$
Corvette 76039.0 miles 35604$Explorer 73166.0 miles 42708$Maxima 62408.0 miles 48480$Camry 60222.0 miles 42253$Yukon 77762.0 miles 32856$G35 57879.0 miles 43580$
Corvette 30493.0 miles 42300$Explorer 37415.0 miles 47143$Maxima 72666.0 miles 26372$Camry 8838.0 miles 20053$Yukon 36970.0 miles 19208$G35 74142.0 miles 43209$
Corvette 52798.0 miles 27118$Explorer 26453.0 miles 20073$Maxima 8714.0 miles 51259$Camry 45263.0 miles 34545$Yukon 79942.0 miles 16467$G35 9845.0 miles 53571$
Corvette 57554.0 miles 21272$Explorer 79950.0 miles 45179$Maxima 60815.0 miles 19626$Camry 72364.0 miles 36598$Yukon 60394.0 miles 30481$G35 20747.0 miles 42849$
Corvette 71231.0 miles 38866$Explorer 69075.0 miles 38237$Maxima 64602.0 miles 52935$Camry 58518.0 miles 20499$Yukon 58127.0 miles 43254$G35 27176.0 miles 32762$
Corvette 37762.0 miles 52013$Explorer 39334.0 miles 49165$Maxima 13954.0 miles 41412$Camry 71137.0 miles 51030$Yukon 54410.0 miles 52339$G35 75629.0 miles 35000$


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