title: java.lang.String cannot be cast to javax.faces.model.SelectItem with s:selectItems
body: <pre><code>&lt;h:selectOneMenu id="reportType" style="width:175px" value="#{pageDemoSearchBean.status}"&gt;
      &lt;f:selectItems value="#{pageDemoSearchBean.vehicleStatus}" /&gt;
  &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>I am using JSF 1.2</p>
  
  <p>This lines of code throws a classCastException</p>
  
  <blockquote>
    <p>java.lang.String cannot be cast to javax.faces.model.SelectItem</p>
  </blockquote>
  
  <p>Provided that replacing "value" by "itemValue" in f:selectItems tag is giving another exception which tells that</p>
  
  <blockquote>
    <p>itemValue is incorrect for selectItems according to TLD</p>
  </blockquote>