5 Replies Latest reply on Mar 4, 2008 6:23 AM by Alex

    a4j:support not working for h:selectOneMenu

    Alex Newbie

      Hello!

      I have the fallowing scenario: when I select a value from the first SelectOneMenu, in the second one, values related to the selected value should appear, like this:

       <a:outputPanel ajaxRendered="true" id="outputoneselectonemenu" >
       <h:selectOneMenu value="#{formulaHelper.selectedVariableType}" id="tipurivariabileCombo">
       <a:support event="onchange" rendered="outputtwoselectonemenu, outputoneselectonemenu" />
       <s:selectItems value="#{formulaHelper.list}"
       var="listavar"
       label="#{listavar.tip}">
       </s:selectItems>
       <s:convertEntity />
       </h:selectOneMenu>
       </a:outputPanel>
      
       <a:outputPanel ajaxRendered="true" id="outputtwoselectonemenu">
       <h:selectOneMenu value="#{formulaHelper.selectedVariabile}" id="variableListCombo">
       <s:selectItems value="#{formulaHelper.listVariabile}"
       var="varvar" label="#{varvar.nume}" >
       </s:selectItems>
       <s:convertEntity />
       </h:selectOneMenu>
       </a:outputPanel>
      


      So why doesn't this work? I have tried putting the SelectOneMenu in different a4j:region or a4j:outputPanel, or both in the same, but still no result. When i change the value, no ajax request is made. Why is this?