0 Replies Latest reply on Aug 8, 2008 12:48 PM by bradmesserle

    Easy.. ComboBox question

    bradmesserle

      I have an easy question. but.. I am trying to figure out how when i select an item from one combo box, the system updates the list of a different combo box via a ajax request.

      Below is my code but I am getting duplicate id error when i select something out of drop down appSelection..

      <a4j:region regionRenderOnly="true">


      <h:outputText value="Please Select Application: "/>
      <h:selectOneMenu id="appSelection"
      value="#{maintainReleaseNotes.selectedApplication}"
      style="width: 150px; " reRender="releaseSelection">
      <a4j:support event="onselect" reRender="releaseSelection" />
      <f:selectItems value="#{maintainReleaseNotes.applications}" />
      </h:selectOneMenu>





      <h:outputText value="Please Select Release: " />
      <h:selectOneMenu id="releaseSelection"
      value="#{maintainReleaseNotes.selectedRelease}"
      style="width: 120px; ">
      <f:selectItems id="releaseItems" value="#{maintainReleaseNotes.releases}" />
      </h:selectOneMenu>


      </a4j:region>

      Thanks!