hI am getting an error saying
serverError: class java.lang.ClassCastException java.lang.Integer cannot be cast to java.lang.String
This happens when I select something from a <h:selectOneMenu>
component.
What are the possible reasons for this error ? I haven't written any JavaScript code to produce the alert.
The <h:selectOneMenu>
component does not deal with Integer at all.
Sometimes I also get an ArrayIndexOutOfBoundException 1
as an alert, too.
<h:selectOneMenu id="vehiclenames" value="#{bean.selectedVehicle}">
<f:selectItem itemLabel="select one" itemValue=""/>
<f:selectItems value="#{vehicles}" />
<f:ajax event="change" listener="#{bean.catchValue}" render= "panel" />
</h:selectOneMenu>