It's not a secret anymore!
The moose likes JSF and the fly likes Help DataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Help DataTable" Watch "Help DataTable" New topic
Author

Help DataTable

Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Hi All,

How can add the sub headers in DataTable? I want to make something like this



Here First Heading, Second Heading and Third Heading are the main headers and each of them has 3 sub headers named Header1, Header2 and Header3.

I have tried to use Nested DataTable but i am unable to specify the header f:facet for outer data Table. Does anyone has solution for this?

Thanks
[ October 27, 2006: Message edited by: Ali Gohar ]
Ron De Leon
Greenhorn

Joined: Feb 14, 2006
Posts: 11
You can try panelGrid, panelGroup and dataTable.

<h:panelGrid>
<h:panelGroup >
<h:dataTable/>
</h:panelGroup>
</h:panelGrid>
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Thanks for the reply, but it is same as using nested DataTables

How can i specify the Header in Panel Group? The problem is displaying Top Headings with Header Facet. I can display them without header Facet but then i can't implement the header style on that because the underlying data tables will also get that style. Is there any solution to that?
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Any idea???
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Ok, i have found the work around for this

I am posting here, may be it can help somebody

vivek dilip yadav
Greenhorn

Joined: Mar 26, 2013
Posts: 1
Dude this was awesome....
Thanks for the code and your help......
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038
    
  26

vivek dilip yadav wrote:Dude this was awesome....
Thanks for the code and your help......


Welcome to the JavaRanch, Vivek!

But you do realize that this thread was last posted to about 7 years ago, don't you? Most of the people in it have probably moved on to other technologies by now.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help DataTable
 
jQuery in Action, 3rd edition