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 33854.0 miles 52547$Explorer 22275.0 miles 43647$Maxima 69093.0 miles 24314$Camry 67799.0 miles 32303$Yukon 7898.0 miles 34025$G35 58813.0 miles 18085$
Corvette 46653.0 miles 54997$Explorer 12100.0 miles 53688$Maxima 64590.0 miles 19578$Camry 67914.0 miles 42931$Yukon 73086.0 miles 43825$G35 58490.0 miles 54282$
Corvette 77861.0 miles 47144$Explorer 27594.0 miles 44914$Maxima 77912.0 miles 41936$Camry 22554.0 miles 44167$Yukon 40583.0 miles 22254$G35 61079.0 miles 47474$
Corvette 57964.0 miles 36153$Explorer 52914.0 miles 19045$Maxima 58346.0 miles 39422$Camry 27499.0 miles 27763$Yukon 32580.0 miles 50841$G35 75324.0 miles 26825$
Corvette 30874.0 miles 35453$Explorer 60811.0 miles 15915$Maxima 17970.0 miles 44514$Camry 27288.0 miles 30394$Yukon 21365.0 miles 43020$G35 74172.0 miles 26038$
Corvette 35813.0 miles 21334$Explorer 27681.0 miles 31201$Maxima 52495.0 miles 45767$Camry 13147.0 miles 39215$Yukon 59609.0 miles 31660$G35 43420.0 miles 52873$
Corvette 25540.0 miles 16098$Explorer 5370.0 miles 34452$Maxima 21482.0 miles 31341$Camry 17615.0 miles 21446$Yukon 71419.0 miles 30161$G35 41067.0 miles 47679$
Corvette 18303.0 miles 26735$Explorer 5588.0 miles 39999$Maxima 56575.0 miles 43833$Camry 5291.0 miles 24719$Yukon 76625.0 miles 39157$G35 59331.0 miles 50299$
Corvette 49692.0 miles 43648$Explorer 53133.0 miles 21369$Maxima 49164.0 miles 53446$Camry 59966.0 miles 51244$Yukon 29373.0 miles 29303$G35 32600.0 miles 29886$


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