Hello there!
Is it possible to manually set the selected value of a HtmlSelectOneMenu from the backing
java class? What im trying to do is the following: I have some HtmlSelectOneMenus which contain data that is bound to the values of the other HtmlSelectOneMenus. For example when i select 1 in the first HtmlSelectOneMenu the second HtmlSelectOneMenu contains the selectitems 4,5,6. If i choose 2 as the selected value in the first HtmlSelectOneMenu the second one contains 7,8,9 as selectitems. I have done this by adding a javascript that submits the form when there was a change in one of my HtmlSelectOneMenus. It works fine but one point i couldnt figure out yet. When the form is submitted the HtmlSelectOneMenus reset their state which is not nice because the user doesnt see what he initially selected. How can i get around this and make the HtmlSelectOneMenus keep the users choice even after the page has been submitted?