title: selectonemenu is not updating from another selectonemenu using<p:ajax > primefaces
body: <p>I am trying to update selectonemenu by selecting some value from other selectonemenu.i am using<code>&lt;p:ajax update=":main:deviceosName" listener="#deviceRegistration.updateOSName}" /&gt;</code> 
  But the listener is not calling updateOSName method . 
  here i am trying to update selectonemenu with id -deviceosName after selecting some value from selectonemenu with id-manufectureName </p>
  
  <p>one another thing selectonemenu with id-manufectureName is updating again.</p>
  
  <p>here is my xhtml page-</p>
  
  <pre><code>&lt;h:form id="main" enctype="multipart/form-data"&gt;
      &lt;p:growl id="messages" showDetail="true" /&gt;
  
      &lt;p:panel id="os_version_panel" header="Os Version"&gt;
          &lt;h:panelGrid columns="3" title="Os Version" style="width:40%;height:20%;padding:10%;padding-left:30%"&gt;
  
              &lt;h:outputLabel for="manufectureName" value="Manufecture Name:*" style="float:right;font-size:15px;width:200px" /&gt;
              &lt;p:spacer width="20" height="50" /&gt;
              &lt;p:selectOneMenu id="manufectureName" value="#{deviceRegistration.selectedManufacture}" effect="fade" converter="deviceManufactureConverter"
                  style="width:200px"&gt;
                  &lt;f:selectItem itemLabel="Select One" itemValue="" /&gt;
                  &lt;f:selectItems value="#{deviceRegistration.manufactureNameList}" var="manufacturer" itemLabel="#{manufacturer.manufacturersName}"
                      itemValue="#{manufacturer}" /&gt;
                  &lt;p:ajax event="valueChange" update=":main:deviceosName" listener="#{deviceRegistration.updateOSName}" /&gt;
              &lt;/p:selectOneMenu&gt;
  
              &lt;h:outputLabel for="deviceosName" value="Device OS Name:*" style="float:right;font-size:15px;width:200px" /&gt;
              &lt;p:spacer width="20" height="50" /&gt;
              &lt;p:selectOneMenu id="deviceosName" value="#{deviceRegistration.selectedOsName}" effect="fade" converter="deviceOsNameConverter"
                  style="width:200px"&gt;
                  &lt;f:selectItem itemLabel="Select One" itemValue="" /&gt;
                  &lt;f:selectItems value="#{deviceRegistration.osNamesList}" var="name" itemLabel="#{name.osName}" itemValue="#{name}" /&gt;
              &lt;/p:selectOneMenu&gt;
  
              &lt;h:outputLabel for="versionName" value="Device OS Version Name:*" style="float:right;font-size:15px;width:200px" /&gt;
              &lt;p:spacer width="20" height="50" /&gt;
              &lt;p:inputText id="versionName" value="#{deviceRegistration.selectedVersion.osVersionName}" required="true" label="versionName" size="30"&gt;
                  &lt;f:validateLength minimum="2" /&gt;
              &lt;/p:inputText&gt;
              &lt;h:outputLabel for="version" value="Device Os Version:*" style="float:right;font-size:15px;width:200px" /&gt;
              &lt;p:spacer width="20" height="50" /&gt;
              &lt;p:inputText id="version" value="#{deviceRegistration.selectedVersion.osVersion}" required="true" label="version" size="30"&gt;
                  &lt;f:validateLength minimum="2" /&gt;
              &lt;/p:inputText&gt;
              &lt;f:facet name="footer"&gt;
                  &lt;p:spacer width="20" height="80" /&gt;
  
                  &lt;p:commandButton id="addOsVersion" value="Add OS Version" actionListener="#{deviceRegistration.addOsVersion}"
                      action="addversion.xhtml?faces-redirect=true" ajax="false" style="float:right;" /&gt;
              &lt;/f:facet&gt;
          &lt;/h:panelGrid&gt;
      &lt;/p:panel&gt;
  
  
  &lt;/h:form&gt;
  </code></pre>