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!

SelectOneMenu keeps on retrieving my previous value selected.

843844Jan 27 2008 — edited Jan 30 2008
Hi! Can somebody help me in solving my problem.
The scenario is like this. When my screen loads my JSF page, I retrieve the values of my SelectOneMenu from my database and populates it. When I select a particular value but cancel's the transaction, I direct my page to my main page which is good. My problem is when I load again the JSF page and retrieve the values again from my database, the default value on my SelectOneMenu becomes the last one that I have selected and not the value in my database. How can my SelectOneMenu defaults again to the value in the database and not the previous selected? I tried to put the managedBean into a request bean and still doesn't work. Can someone help me please!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2008
Added on Jan 27 2008
6 comments
786 views