• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help DataTable

 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try panelGrid, panelGroup and dataTable.

<h:panelGrid>
<h:panelGroup >
<h:dataTable/>
</h:panelGroup>
</h:panelGrid>
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any idea???
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, i have found the work around for this

I am posting here, may be it can help somebody

 
vivek dilip yadav
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude this was awesome....
Thanks for the code and your help......
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic