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 not resetting on user refresh

843844Sep 5 2008 — edited Sep 5 2008
Hello,

I am using Sun JSF RI/Tomcat 6 for an application I'm working on and have a problem with the behavior of the selectOneMenu component.

It appears that when a user refreshes the browser, the slectOneMenu will retain the currently selected item, and not default to the initial value I set in my backing bean.

This is a problem since I have a dataTable(RichFaces) that is dependent on the value of that selectOneMenu. In request scope, if the user refreshes the browser, the backing bean gets created with initial values that no longer match the selected item of the selectOneMenu. If I change the bean to have session scope, the bean/selectOneMenu stays in synch, but I would rather avoid this.

Thanks...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2008
Added on Sep 5 2008
5 comments
1,587 views