Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamically Refresh Dropdown in JSF

843844Jun 22 2007 — edited Jun 20 2008
I wanna dynamically refresh dropdown values. Here is my requirement

The user creates new record by selecting "New" value from the dropdown. Then user enters values on form fields and clicks the Submit button. The result is record gets created in the database and also gets populated in the dropdown. Now i wanna show this record as selected value in the dropdown instead of New to faciltate update/delete operations.

Note: The reason i am doing this is subsequent save results in detached object hibernate exception. To resolve this exception if i create a new instance then i will loose the original object so i cant do update/delete on the original object. My backing bean is in session scope

Any pointers/suggestions will be highly appreciated
Regards
Bansi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2008
Added on Jun 22 2007
6 comments
176 views