This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Richfaces ColumnGrouping Component For dynamic Columns/SubColumns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces ColumnGrouping Component For dynamic Columns/SubColumns" Watch "Richfaces ColumnGrouping Component For dynamic Columns/SubColumns" New topic
Author

Richfaces ColumnGrouping Component For dynamic Columns/SubColumns

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
hi ,
i need to implement column group functionality using rich:columnGroup component in richfaces.
but the column group comes dynamically , i.e the group and subgroups are from an .xml file which can have random order of group and subgroups.
but the columnGroup component requires fixed group/subgroups, which i checked in the demo.
is there anyway i can implement this dynamic column grouping feature , either from .java file side or in xhtml side.
please share your suggestions.


regards,
amarshi


SCJP (97%), SCWCD (95%))
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

You can do a lot with the RichFaces "columns" tag as far as dynamically defining columns, but the degree of complexity that you want may exceed what the RichFaces View Definition Language tags can provide. In which case, you'd need to bind the table's UIComponent to a backing bean and use backing bean logic to manually build up the structures you need.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Richfaces ColumnGrouping Component For dynamic Columns/SubColumns