SelectOneMenu keeps on retrieving my previous value selected.
843844Jan 27 2008 — edited Jan 30 2008Hi! 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!!!