title: Primefaces / JSF: selectOneMenu value is not set, ajax listener not called
body: <p>I am using Primefaces and JSF to develop this frontend.  My issue is that one of my selectonemenus never sets its value binding, "selectedGroup", so the second dropdown is never populated.  My backing bean is being called to "update" the second selectonemenu, but the listener of that ajax is not called, nor is selectedGroup ever set.  This code is effectively identical to the Showcase for <a href="http://www.primefaces.org/showcase-labs/ui/pprSelect.jsf" rel="nofollow">"Select"</a>.  I even verified that the showcase code works from scratch (which i did not doubt), but fail to see how my situation is any different from that example.</p>
  
  <p>Other stackoverflow questions on this topic indicate that something was left out, but none of those suggestions matched my issue.</p>
  
  <p>I have two selectOneMenus, like so.</p>
  
  <pre><code>&lt;h:form id="outerForm"&gt;
  
      &lt;p:panel id="outerPanel"&gt;
  
          &lt;p:panelGrid id="outerPanelGrid"&gt;
              &lt;h:outputLabel for="groupSelection" value="Group: "/&gt;
              &lt;p:selectOneMenu id="groupSelection" value="#{myBean.selectedGroup}" &gt;
                  &lt;p:ajax update="commandSelection"
                          listener="#{myBean.handleGroupSelection}" /&gt;
                  &lt;f:selectItem itemLabel="---Please Select Group---" itemValue=""/&gt;
                  &lt;f:selectItems var="group" value="#{myBean.groups}"
                                 itemLabel="#{group.name}" itemValue="#{group.name}" /&gt;
              &lt;/p:selectOneMenu&gt;
  
              &lt;h:outputLabel for="commandSelection" value="Command: "/&gt;
              &lt;p:selectOneMenu id="commandSelection" value="#{myBean.command}"&gt;
                  &lt;f:selectItems value="#{myBean.commandStringsList}"/&gt;
              &lt;/p:selectOneMenu&gt;
          &lt;/p:panelGrid&gt;
       &lt;/p:panel&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>This page is being displayed in the "center" portion of my layout template like so..</p>
  
  <pre><code>&lt;ui:define id="content" name="content"&gt;
      &lt;p:panel id="contentPanel" style="float:left; border:none"&gt;
          &lt;ui:include src="#{anotherBean.currentView}.xhtml"/&gt;
      &lt;/p:panel&gt;
  &lt;/ui:define&gt;
  </code></pre>
  
  <p>The backing bean DOES use some data classes to contain some of the data which is populated, but I thought i was doing everything correct to map it into the view.  For the most part, I am using Strings, though.</p>
  
  <p>Does anyone see what I am missing?  At the very least, is this xhtml valid?</p>
  
  <p>I should also mention that this page was working before I created and used a template.  Basically, I was rendering it in a tab of a tabview using ui:include in the body of index.xhtml.  Though I did not notice initially, this page stopped working sometime after I incorporated the template (poor testing on my part, I know).</p>