java - Set a default value to a rich:select component which has enableManualInput set to true? -
<rich:select id="midisabled" enablemanualinput="false" value="bar"> <f:selectitem itemlabel="foo" itemvalue="foo" /> <f:selectitem itemlabel="bar" itemvalue="bar" /> </rich:select> <rich:select id="mienabled" enablemanualinput="true" value="bar"> <f:selectitem itemlabel="foo" itemvalue="foo" /> <f:selectitem itemlabel="bar" itemvalue="bar" /> </rich:select>
both rich:select
s have "bar"
value selected default, midisabled
's dropdownlist has 2 available values "foo"
, "bar"
expected, while mienabled
's have "bar"
: "foo"
disappeared...
any other way set default value rich:select
component has enablemanualinput
set true
?
- richfaces 4.1.0
- jsf 2.1.21
- jdk 6u20 x32
but default value being set, isn't it?
with manual input enabled dropdownlist filtered type in. if want show items time have set clientfilterfunction
rich:select
.
filter = function(discardtypedvalue, item) { return item; }
Comments
Post a Comment