• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Datable Problem !

 
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 !
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://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
 
Pay attention! Tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic