Hi,
I have had a similar problem recently. Generally happens if the
application is not able to find the selected value in the List of selectItems.
This can be due to 2 possible situations:
1. The list is not available during validation
-> try using a <t:saveState value="#{reportsBean.containerTypeList }" />
to ensure it is
2. The values of the selectItems (getValue() and setValue()) do not contain
Strings and there is no converter:
-> use a corresponding converter e.g. for Long - LongConverter
for the selectOneMenu
hope that helps
regards
Ernst
On 2/22/07, Srinivas V <[EMAIL PROTECTED]> wrote:
Hi All,
Please help me!!
I am having an issue with SelectOneMenu.
I have installed JSF 1.1.5-SNAPSHOT,Tomahawk1.1.5- SNAPSHOT and
tomahawk-sandbox-1.1.5-SNAPSHOT.
Previously i had myfaces1.1 jar
I dint have issue with selectOneMenu before.
Now when I submit the page, I am getting this jsf validation error:
Container:"Value is not a valid option"
for a selectOneMenu even if i select some option.
code:
<h:panelGroup rendered="#{reportsBean.renderContainerType}">
<x:outputLabel for="containerfilter"
value="#{msgBundle.EPCMgr_ContainerLbl}:"
styleClass="standard_text_bold"/>
<f:verbatim><br/></f:verbatim>
<h:selectOneMenu id="containerfilter"
value="#{reportsBean.containerType}" immediate="true" disabled="#{
reportsBean.optionDisabled }" styleClass="standard_input">
<f:selectItem itemValue="" itemLabel=" " />
<f:selectItems value="#{reportsBean.containerTypeList }"/>
</h:selectOneMenu>
</h:panelGroup>
Can anybody tell me why it is happening?
regards
srinivas