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