I have a dropdownList and its binded to a Long value in my managed Bean,
But I am getting "Value is not valid" error
here is my code
<h:selectOneMenu id="testSelectOneMenu" value="#{myBean.LongParameter}" >
<f:selectItem id="item1" itemLabel="News" itemValue="1" />
<f:selectItem id="item2" itemLabel="Sports" itemValue="2" />
<f:converter converterId="javax.faces.Long" />
</h:selectOneMenu>
interesting things is if i change it to
<h:inputText id="testInputText" value="#{myBean.LongParameter}" >
<f:converter converterId="javax.faces.Long" />
</h:inputText >
it works fine..
Can anybody explain this behavior?