PhotoAlbum Application Download Support Developer Guide
Resources/Beans Handling
Ajax Miscellaneous
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
Corvette 57372.0 miles 48541$Explorer 61791.0 miles 48701$Maxima 55389.0 miles 42274$Camry 72187.0 miles 21706$Yukon 56841.0 miles 38878$G35 63948.0 miles 34127$
Corvette 31046.0 miles 30527$Explorer 62697.0 miles 53182$Maxima 35355.0 miles 34494$Camry 17004.0 miles 31160$Yukon 38727.0 miles 54150$G35 44573.0 miles 31006$
Corvette 77968.0 miles 41388$Explorer 7307.0 miles 54382$Maxima 30148.0 miles 28935$Camry 68305.0 miles 48339$Yukon 54683.0 miles 18688$G35 13254.0 miles 32114$
Corvette 38284.0 miles 26969$Explorer 19077.0 miles 43513$Maxima 59081.0 miles 41983$Camry 70655.0 miles 31087$Yukon 57749.0 miles 22482$G35 36128.0 miles 24680$
Corvette 59921.0 miles 44118$Explorer 32175.0 miles 46588$Maxima 41721.0 miles 39172$Camry 9425.0 miles 37182$Yukon 54169.0 miles 33827$G35 15827.0 miles 31401$
Corvette 32747.0 miles 16302$Explorer 75152.0 miles 25847$Maxima 61233.0 miles 49667$Camry 61718.0 miles 52537$Yukon 11202.0 miles 24168$G35 55371.0 miles 43587$
Corvette 30468.0 miles 54573$Explorer 5536.0 miles 38416$Maxima 12514.0 miles 54812$Camry 70089.0 miles 49190$Yukon 77781.0 miles 28307$G35 66205.0 miles 31366$
Corvette 41162.0 miles 40281$Explorer 38160.0 miles 38063$Maxima 45746.0 miles 48790$Camry 21594.0 miles 25313$Yukon 75137.0 miles 31962$G35 63709.0 miles 46341$
Corvette 45294.0 miles 49421$Explorer 40990.0 miles 17566$Maxima 78552.0 miles 23630$Camry 33192.0 miles 35937$Yukon 10315.0 miles 43040$G35 51562.0 miles 26005$

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