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 48515.0 miles 44694$Explorer 17311.0 miles 43042$Maxima 23736.0 miles 28883$Camry 64155.0 miles 29143$Yukon 50578.0 miles 34478$G35 51834.0 miles 34265$
Corvette 11313.0 miles 33025$Explorer 52336.0 miles 32046$Maxima 30724.0 miles 54595$Camry 45919.0 miles 48470$Yukon 34234.0 miles 48362$G35 79743.0 miles 38556$
Corvette 71109.0 miles 42864$Explorer 30515.0 miles 19417$Maxima 29339.0 miles 54053$Camry 78837.0 miles 23688$Yukon 53566.0 miles 34985$G35 73987.0 miles 38345$
Corvette 29184.0 miles 53604$Explorer 76166.0 miles 53890$Maxima 46223.0 miles 37792$Camry 51592.0 miles 19813$Yukon 66185.0 miles 22001$G35 12449.0 miles 50792$
Corvette 15224.0 miles 51517$Explorer 52852.0 miles 45502$Maxima 65867.0 miles 25061$Camry 70601.0 miles 40211$Yukon 45871.0 miles 15392$G35 78867.0 miles 38979$
Corvette 18259.0 miles 43580$Explorer 46152.0 miles 42421$Maxima 77469.0 miles 18233$Camry 63773.0 miles 33222$Yukon 24866.0 miles 27167$G35 28766.0 miles 24717$
Corvette 31725.0 miles 54399$Explorer 77158.0 miles 33646$Maxima 7784.0 miles 43568$Camry 71265.0 miles 49478$Yukon 65538.0 miles 30155$G35 32939.0 miles 34400$
Corvette 35975.0 miles 26324$Explorer 13685.0 miles 20239$Maxima 52888.0 miles 16680$Camry 42247.0 miles 33837$Yukon 45444.0 miles 34345$G35 45359.0 miles 17629$
Corvette 26127.0 miles 20657$Explorer 40533.0 miles 19400$Maxima 41641.0 miles 36933$Camry 53829.0 miles 21203$Yukon 65415.0 miles 43461$G35 49264.0 miles 24413$


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