0 Replies Latest reply on Oct 31, 2006 8:31 AM by yj4jboss

    Ajax Problem With Combo Boxes


      Hi All,
      I have the following use case:
      - provide a List of Firms with one h:selectOneMenu
      - provide a List of Users in the Selected Drop Down Menu as above

      I am implementing this using Ajax such that when the value of the Drop Down Menu which lists the firms changes, the second drop down menu is automatically refreshed with the users found in the firm selected in the First Drop down menu

      The code for the first selectOneMenu is as follows:

       <h:selectOneMenu value="#{userFirmEditorBean.selectedFirm}" immediate="true"
       value="#{auditorEditorBean.auditFirmList.selectItemList}" />
       <a4j:support event="onchange"
       reRender="EditAuditorForFinancialStatement" />

      While the code for the second drop down menu is as follows:

       <h:message for="newAuditor" showDetail="true" showSummary="true"/>
       <h:selectOneMenu id="newAuditor" value="#{auditorEditorBean.newStmtAuditorFromList}"
       value="#{auditorEditorBean.auditorSelectList.selectItemList}" />
       <a4j:commandButton value="#{commonBundle.Ok}"

      Both forms are contained in the same "a4j:outputPanel" .....

      My problem is that when the value of the first drop down menu changes, the second drop down menu is correctly refreshed with the corresponding users in the selected firm.....but this value cannot be unbound to the SFSB......

      Any help on this .....

      Thnx in advance,
      Jankee Yogesh