This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Datable Problem !

 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am having a problem in datatable, the problem is of MASTER-CHILD tables in the database. I am using ibatis to communicate with database and populate the beans. The scenario is as follows :-

I have two Tables :-
Roles and Nominees. The Roles is master table and the Nominees is the child table. There are many nominees for one role. Following are the attributes of the table :-



Now i want to display all the records from these two tables in frontend as follows :-

----------------------------------------------------------------
Role Treasurer (role id 1)
----------------------------------------------------------------
Nominee 1
Nominee 2
Nominee 3
Nominee 4
----------------------------------------------------------------
Role Chairman (role id 2)
----------------------------------------------------------------
Nominee 5
Nominee 6
Nominee 7
Nominee 9
----------------------------------------------------------------
Role Treasurer (role id 2)
----------------------------------------------------------------
Nominee 8
Nominee 12
Nominee 13
Nominee 25
----------------------------------------------------------------


I am really stuck up on how i can display this kind of output on the front end ! ..Some body please please please Help me !! please help me !

Thanks
Omkar patkar !
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/211729/JSF/java/Dynamic-dataTable-JSF

Why are you crossposting this problem in another topic .. ?

Well, just nest two datatables. Use a two-dimensional List and put the 2nd datatable in a h:column of the 1st datatable.
[ December 23, 2006: Message edited by: Bauke Scholtz ]
 
omkar patkar
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bauke,
Actually, i was surfing through the threads when i came across the one having a similar problem. So i thought i would post my problem here too ! ....But, then i realized that there was no option for me to have email notification when replies are made to that thread ! ...So i posted my own problem as a separate thread so that i will get email notifications ! ... since i needed the help a bit urgently ! .... i was in a kinda hurry ! .... i am sorry ! ...i won't cross post again ! i apologize ! ...and yes thanks ! ... i will try out this solution !

Thanks
Omkar
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!