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 72366.0 miles 20938$Explorer 15895.0 miles 40000$Maxima 56821.0 miles 52748$Camry 13535.0 miles 35153$Yukon 26973.0 miles 44464$G35 62010.0 miles 34587$
Corvette 54653.0 miles 42552$Explorer 79539.0 miles 31639$Maxima 47842.0 miles 27006$Camry 31967.0 miles 46353$Yukon 55160.0 miles 43856$G35 75488.0 miles 51724$
Corvette 33662.0 miles 24007$Explorer 14659.0 miles 31128$Maxima 64320.0 miles 40002$Camry 52410.0 miles 31803$Yukon 27299.0 miles 27274$G35 54342.0 miles 24534$
Corvette 55692.0 miles 20717$Explorer 24817.0 miles 30976$Maxima 9146.0 miles 39046$Camry 78384.0 miles 51601$Yukon 71459.0 miles 48552$G35 15267.0 miles 17909$
Corvette 7589.0 miles 17990$Explorer 79508.0 miles 24734$Maxima 68947.0 miles 30233$Camry 9729.0 miles 21269$Yukon 38828.0 miles 25376$G35 26151.0 miles 42273$
Corvette 46657.0 miles 26129$Explorer 67446.0 miles 25694$Maxima 56136.0 miles 49767$Camry 63714.0 miles 22505$Yukon 72872.0 miles 18108$G35 79794.0 miles 40270$
Corvette 24945.0 miles 35206$Explorer 28574.0 miles 51690$Maxima 39804.0 miles 22739$Camry 18685.0 miles 38203$Yukon 18758.0 miles 35912$G35 75655.0 miles 19984$
Corvette 45557.0 miles 41593$Explorer 27177.0 miles 41507$Maxima 67531.0 miles 37585$Camry 38989.0 miles 24432$Yukon 12138.0 miles 46381$G35 63241.0 miles 22098$
Corvette 6702.0 miles 27915$Explorer 37181.0 miles 46647$Maxima 38148.0 miles 27522$Camry 16066.0 miles 51789$Yukon 75736.0 miles 36644$G35 66654.0 miles 42013$


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