Hello Andrew,
thanks for answering!
item value must be the exact same type as the backing bean
getter/setter. A converter will not help!
In your example, itemValue is a string (use EL to use other types)
I tried this without success:
<t:selectOneMenu value="#
{projectSearchHandler.projectSearchValue.year}">
<f:selectItem itemLabel="2007" itemValue="#{2007}" />
<f:selectItem itemLabel="2008" itemValue="#{2008}" />
<f:selectItem itemLabel="2009" itemValue="#{2009}" />
</t:selectOneMenu>
, so therefore getYear/setYear must be a string as well for it to
work.
I can't change that. Year must remain Integer.
This was broken in myfaces 1.1.4.
Please see the WIKI as it is documented there.
Where? <http://wiki.apache.org/myfaces/>? I cannot find anything
about it.
thanks,
Marcus