title: p:selectOneMenu does not set value in bean
body: <p>Quick question. This hasn't happened to me before when working with SelectOneMenu. This is my code.</p>
  
  <pre><code>&lt;h:outputLabel for="listaRegiones" value="Región: " /&gt;
  &lt;p:selectOneMenu id="listaRegiones" value="#{nuevaProvincia.regionSelect}" required="true"&gt;
      &lt;f:selectItems value="#{nuevaProvincia.regiones}" /&gt;
  &lt;/p:selectOneMenu&gt;
  &lt;p:message for="listaRegiones" /&gt;
  </code></pre>
  
  <p>And this is my backing bean.</p>
  
  <pre><code>@ManagedBean(name="nuevaProvincia")
  @ViewScoped
  public class nuevaProvincia implements Serializable {
  
      public static final long serialVersionUID = 1L;
  
      public nuevaProvincia() throws DAOException {
          this.provincia = new Provincia();
          this.regiones = new ArrayList&lt;SelectItem&gt;();
          ArrayList&lt;Region&gt; regs = new ArrayList&lt;Region&gt;();
          try
          {
              regs = Region.obtenerRegiones();
          }
          catch(DAOException e)
          {
              FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, "Hubo un error: "+e.getMessage(), "Hubo un error: "+e.getMessage()));
          }
          if(regs.size()&gt;0)
          {
              for(Region r : regs)
              {
                  SelectItem item = new SelectItem(r.getCodigo(), r.getNombre());
                  regiones.add(item);
              }
              this.regionSelect = regs.get(0).getCodigo();
          }
          else
              this.regionSelect = "";
      }
  
      public void verificaProvincia() throws DAOException {
          provincia.getRegion().setCodigo(regionSelect);
          try
          {
              if(this.provincia.estaCreado())
                  FacesContext.getCurrentInstance().addMessage("frmIngProvincia:provCodigo", new FacesMessage(FacesMessage.SEVERITY_WARN, "El código de provincia ingresado ya existe.", "El código de provincia ingresado ya existe."));
              else
                  FacesContext.getCurrentInstance().addMessage("frmIngProvincia:provCodigo", new FacesMessage(FacesMessage.SEVERITY_INFO, "El código de provincia ingresado no existe.", "El código de provincia ingresado no existe."));
          }
          catch(DAOException e)
          {
              FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, "Hubo un error: "+e.getMessage(), "Hubo un error: "+e.getMessage()));
          }
      }
  
      public void insertaProvincia() throws DAOException {
          try
          {
              provincia.getRegion().setCodigo(regionSelect);
              provincia.guardar();
              FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Provincia ingresada con éxito", "Provincia ingresada con éxito"));
          }
          catch(DAOException e)
          {
              FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Hubo un error: "+e.getMessage(), "Hubo un error: "+e.getMessage()));
              throw e;
          }
      }
  
      //Getters and setters for everything        
  
      //Privados
      private Provincia provincia;
      private String regionSelect;
      private List&lt;SelectItem&gt; regiones;
  }
  </code></pre>
  
  <p>The problem is as follows: whenever I change the value in my selectonemenu, the value in the backing bean is not being set (although I do have a setter for <code>regionSelect</code>). Why would this happen?</p>