SelectOneMenu keeps resetting
Posted
by DD
on Stack Overflow
See other posts from Stack Overflow
or by DD
Published on 2010-03-19T11:05:48Z
Indexed on
2010/03/19
11:11 UTC
Read the original article
Hit count: 286
jsf
|selectonemenu
When I press refresh the selectOneMenu resets to the first item in the list even after I have selected the secondItem.
This doesnt seem consistent with SelectOneRadio which maintains the selected item after I refresh.
<ice:selectOneMenu id="test" >
<f:selectItem itemLabel="test"/>
<f:selectItem itemLabel="test2"/>
</ice:selectOneMenu>
Is there a way to keep the selected value after a refresh?
© Stack Overflow or respective owner