Richard Yee-3 wrote:
> 
> As I mentioned in my prior email, you need to set the value attribute
> in the tr:selectOneChoice tag to be an el expression that resolves to
> a property in a backing bean.
> 
> ie. value="#{myBacking.selectVal}"
> 
> selectVal would be defined as a String and would have a getter and
> setter. To select a default select item, you would have the value of
> selectVal to the desired selected value
> 
> ie
> 
> String selectVal = "1";

It doesn't help. I still get the warning that the value has not been found
in the <tr:selectItem>s.
But I've found a workaround (maybe not the neatest, but at least it works) -
I set the first <tr:selectItem> to the same value as the "value" attribute
of <tr:selectOneChoice>, then, I generate the rest of selectItems, but start
the iteration from one year later.
-- 
View this message in context: 
http://www.nabble.com/default-value-in-tr%3AselectOneChoice-tp19393693p19644376.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to