title: selectOneMenu value null when using selectItems from a different backing bean
body: <p>I have a form where I create a user. In my form, I have multiple properties for that user (I actually use a User object for the retainment of data on submit to the backing bean)</p>
  
  <p><strong>create.xhtml</strong></p>
  
  <pre><code>            &lt;h:form&gt;
                  &lt;h:outputLabel for="user_name" value="Name:" /&gt;
                  &lt;h:inputText id="user_name" value="#{createUserView.newUser.username}" /&gt;
  
                  &lt;br/&gt;&lt;br/&gt;
  
                  &lt;h:outputLabel for="user_password" value="Default Password*:" /&gt;
                  &lt;h:inputSecret id="user_password" value="#{createUserView.newUser.password}"&gt;&lt;/h:inputSecret&gt;&lt;br/&gt;&lt;br/&gt;
  
                  &lt;h:outputLabel for="user_organization" value="Organization:" /&gt;
                  &lt;h:selectOneMenu id="user_organization" disabled="true" value="#{createUserView.newUser.organizationId}"&gt;
                      &lt;f:selectItems 
                          value="#{organizationBean.allOrganizations}" 
                          var="org"
                          itemLabel="#{org.organizationName}"
                          itemValue="#{org.id}" /&gt;
                  &lt;/h:selectOneMenu&gt;&lt;br/&gt;&lt;br/&gt;
  
                  &lt;h:commandButton value="Create" action="#{createUserView.createNewUser}" /&gt;
              &lt;/h:form&gt;
  </code></pre>
  
  <p><strong>CreateUserView</strong></p>
  
  <pre><code>@ManagedBean(name = "createUserView")
  @RequestScoped
  public class CreateUserView {
  
      private UserServices userSerivces;
      private User newUser;
  
      @ManagedProperty(value="#{organizationBean}") 
      private OrganizationBean organizationBean;
  
      public CreateUserView() {
          newUser = new User();
          userSerivces = new UserServices();
      }
  
      public void createNewUser() {       
          userSerivces.createNewUser(newUser);
      }
  
      // Getters and Setters
  }
  </code></pre>
  
  <p><strong>OrganizationBean</strong></p>
  
  <pre><code>@ManagedBean(name = "organizationBean")
  @RequestScoped
  public class OrganizationBean {
  
      private List&lt;Organization&gt; allOrganizations;
      private OrganizationServices orgServices;
  
      public OrganizationBean() {
          orgServices = new OrganizationServices();
          allOrganizations = orgServices.retrieveAllOrganizations();
      }
  
      // Getters and Setters
  }
  </code></pre>
  
  <p>The issue here is that when I reference the newUser object in the backing bean, the organizationId value is null.</p>
  
  <p>I assume this is because OrganizationBean (excuse the confusing in naming, refactoring) is either not rendered for my current view or I need to somehow inject.</p>
  
  <p>I've tried a managed property in the CreateUserView backing bean that references the OrganizationBean, but no luck. The organizationID value in the newUser object is null.</p>
  
  <p>Do I need to populate a list in the CreateUserView bean using the OrganizationBean injection, so that it has it's own list it can render?</p>
  
  <p>What am I missing? Feeling foolish.</p>
  
  <p>JSF 2.0</p>