Dynamically Refresh Dropdown in JSF
843844Jun 22 2007 — edited Jun 20 2008I 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