0 Replies Latest reply on Oct 8, 2010 5:35 AM by Abdul Mujeeb Mohammed

    a4j:support 'reRender' problem

    Abdul Mujeeb Mohammed Newbie

      I am trying to reRender a second dropdown upon selecting an item from first dropdown. The reRender works fine. But the second dropdown also has a <a4j:support, which triggers the moment the second dropdown is loaded. How do I stop second dropdown from reloading when first dropdown refreshes the second one.





      <h:selectOneMenu id="depTargetsDropDown" valueChangeListener="#{workspace.selectionChanged}">
                 <c:forEach var="targets" items="#{workspace.deploymentTargets}">
                             <f:selectItem itemValue="#{targets.id}" itemLabel="#{targets.name}"/>
                 <a4j:support event="onchange" reRender="packageDropDown"/>


      <h:outputLabel value="Packages:" styleClass="labelLeft"/>
      <h:selectOneMenu id="packageDropDown" valueChangeListener="#{workspace.selectionChanged}">
                  <c:forEach var="package" items="#{workspace.selectedPackages}">
                          <f:selectItem itemValue="#{package.id}" itemLabel="#{package.name}"/>

                  <a4j:support event="onchange"/>