title: PrimeFaces p:ajax event="change" not fired on dynamically created selecOneMenu content
body: <p>I want to generate selecOneMenu content when the user types in an inputText field, and respond to combo box selection changes.<br>
  The below code updates the contents of the selecOneMenu as the user types. (The typed and the next 9 numbers gets added to the combo box. This is just a simplified example code.)<br>
  When the page is loaded, the change event of the selecOneMenu correctly gets fired.
  However after typing in the inputValue field, content of selecOneMenu is changed, and the change event is not fired when I select an item.</p>
  
  <p>The code works if ComboBean is session scoped, but I want to avoid this solution if possible.</p>
  
  <p>Is it possible at all to do this?<br>
  What is the reason if it is not possible with request scope?</p>
  
  <p>PrimeFaces 2.2<br>
  Mojarra 2.0.2<br>
  GlassFish 3.0.1<br>
  Browser: Chrome, Firefox, IE  </p>
  
  <p>combo.xhtml:
      
      
      </p>
  
  <pre><code>&lt;h:head&gt;
      &lt;title&gt;Combo box example&lt;/title&gt;
  &lt;/h:head&gt;
  
  &lt;h:body&gt;
      &lt;h:form&gt;
          &lt;p:panel id="mainPanel"&gt;
              &lt;h:panelGroup id="formToSubmit" layout="block"&gt;
                  &lt;p:messages id="messages" /&gt;
                  &lt;h:panelGrid columns="2"&gt;
                      &lt;h:outputLabel value="Enter a number" /&gt;
                      &lt;h:inputText id="inputValue" value="#{comboBean.inputValue}"&gt;
                          &lt;p:ajax event="keyup" update="combo"
                              listener="#{comboBean.onKeyUp}" /&gt;
                      &lt;/h:inputText&gt;
  
                      &lt;h:outputLabel value="Select a value:" /&gt;
                      &lt;h:selectOneMenu id="combo" value="#{comboBean.selectedValue}"&gt;
                          &lt;f:selectItem itemLabel="Select a value..."
                              noSelectionOption="true" /&gt;
                          &lt;f:selectItems value="#{comboBean.values}" /&gt;
                          &lt;p:ajax event="change" update="selectedValue"
                              listener="#{comboBean.valueSelected}" /&gt;
                      &lt;/h:selectOneMenu&gt;
                      &lt;h:outputLabel value="Selected value:" /&gt;
                      &lt;h:inputText id="selectedValue" value="#{comboBean.selectedValue}" /&gt;
                  &lt;/h:panelGrid&gt;
              &lt;/h:panelGroup&gt;
          &lt;/p:panel&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>ComboBean.java</p>
  
  <pre><code>package x;
  
  import java.io.Serializable;
  import java.util.LinkedList;
  import java.util.List;
  
  import javax.annotation.PostConstruct;
  import javax.enterprise.context.RequestScoped;
  import javax.enterprise.context.SessionScoped;
  import javax.inject.Named;
  
  @Named
  @RequestScoped
  public class ComboBean implements Serializable
  {
      private static final long serialVersionUID = 1L;
      private String inputValue;
      private String selectedValue;
      private List&lt;String&gt; values;
  
      @PostConstruct
      void init()
      {
          System.out.println("init");
          setValues(new LinkedList&lt;String&gt;());
          for(int i = 0; i&lt;10 ; i++)
          {
              getValues().add(""+i);
          }
      }
  
      public void onKeyUp()
      {
          System.out.println("onkeyUp " + getInputValue());
          setValues(new LinkedList&lt;String&gt;());
          if (inputValue != null)
          {
              try 
              {
                  int v = Integer.parseInt(inputValue);
                  for(int i = 0; i&lt;10 ; i++)
                  {
                      getValues().add(""+(v+i));
                  }
              } 
              catch (NumberFormatException ne) 
              {
                  //doesn't matter
              }
          }
      }
  
      public void valueSelected()
      {
          System.out.println("valueSelected " + getSelectedValue());
      }
  
      public void submit()
      {
          System.out.println("submit " + getInputValue());
      }
  
      public void setInputValue(String inputValue)
      {
          this.inputValue = inputValue;
      }
  
      public String getInputValue()
      {
          return inputValue;
      }
  
      public void setSelectedValue(String selectedValue)
      {
          this.selectedValue = selectedValue;
      }
  
      public String getSelectedValue()
      {
          return selectedValue;
      }
  
      public void setValues(List&lt;String&gt; values)
      {
          this.values = values;
      }
  
      public List&lt;String&gt; getValues()
      {
          return values;
      }
  
  }
  </code></pre>