-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JSF selectonemenu question
PostPosted: Thu Jul 24, 2008 1:47 pm 
Newbie

Joined: Tue Apr 15, 2008 4:56 am
Posts: 5
Hi All,

I need some help with JSF selectonemenu used along with Hibernate.

I was trying an example of populating a selectonemenu from a database table. The database has two tables, one with students, and other with their advisors. The student table has advisors as a foregin key. I am populating my JSF page with list of advisors from the advisor table. When an advisor value is selected, the appropriate ID of the advisor selected should be set in the students table. I am able to retrieve the values but cannot save the related ID in the students table. Can anyone please explain me on how to get the ID of the selected value from one table and save it in another table.

Thank you,
lavanya.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.