I have a similar problem: I need to know, in my back manage bean, what is the selected item. My selectOneMenu is created dynamically from a database query. By now I don’t have the answer yet.
I think the idea of Akaine is interesting…
Run a javascript function on onchange or onselect event that compares the values and set the selected property of the second field to the option that matches the original.
Nevertheless the javascript event should be onchange and also use additional hinding html element binding with the back manage bean. Don’t use onselect because that event is for textarea or textfield when the text is selected.
I’m looking for a better solution…please help.