title: ice:selectOneMenu
body: <p>I've only been using Ice:faces for a week now and I'm having problems figuring out how to implement a simple selectOneMenu to my page so I can select a gender of a person by a simple drop down rather then typing stuff in. </p>
  
  <p>The error im getting is the following </p>
  
  <hr>
  
  <p>type Exception report</p>
  
  <p>message</p>
  
  <p>descriptionThe server encountered an internal error () that prevented it from fulfilling this request.</p>
  
  <p>exception </p>
  
  <p>javax.el.MethodNotFoundException: Method not found: data.SelectMenuHomes@ad503c.selectedGender(javax.faces.event.ValueChangeEvent)</p>
  
  <p>note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1.1 logs.</p>
  
  <hr>
  
  <p>so i figured im obviously refering to something that isnt there</p>
  
  <p>here is my code</p>
  
  <p>In the page jsp form :</p>
  
  <pre><code>&lt;ice:selectOneMenu valueChangeListener="#{homeSelect.selectedGender}"&gt;
      &lt;f:selectItems value="#{homeSelect.genders}"/&gt;
  &lt;/ice:selectOneMenu&gt;
  </code></pre>
  
  <p>the class for the select menu :</p>
  
  <pre><code>import java.util.LinkedList;
  import java.util.List;
  
  import javax.faces.event.ValueChangeEvent;
  import javax.faces.model.SelectItem;
  
  
  public class SelectMenuHomes
  {
      public static String selectedGender = null;
  
  
      public static void changeGender(ValueChangeEvent event)
      {
      selectedGender = event.getNewValue().toString();
      }
  
      public List&lt;SelectItem&gt; getGenders()
      {
          List&lt;SelectItem&gt; genderList = new LinkedList&lt;SelectItem&gt;();
          genderList.add(new SelectItem("Male"));
          genderList.add(new SelectItem("Female"));
          return genderList;
      }
  
  
      public String getSelectedGender() {
          return selectedGender;
      }
  
      public void setSelectedGender(String selectedGender) {
          this.selectedGender = selectedGender;
      }
  
  }
  </code></pre>
  
  <p>and homeSelect is the name for the managed bean I gave to refer to the MenuSelectHomesClass</p>
  
  <p>thank you for any help</p>