1 Reply Latest reply on Feb 11, 2009 6:44 PM by nbelaevski

    reRender comboBox

    lmk

      Hi guys,

      Id like to reRender comboBox on ajax component event;
      even using a4j:outputPanel it does not work

      please find below a snippet code

      <a4j:outputPanel id="combo_attribute">
      <h:panelGrid columns="3" cellspacing="5">
      <h:outputText value="attribute" />
      <rich:comboBox selectFirstOnUpdate="false"
      defaultLabel="Enter some value"
      value="#{bean.attribute}" width="300">
      <t:selectItems value="#{bean.allAttributes}" var="list" itemLabel="#{list.name}" itemValue="#{list.name}" />
      <a4j:support event="onselect" reRender="choices"
      action="#{bean.onSelectAttribute}">
      </a4j:support>
      </rich:comboBox>
      <rich:message for="cAuthorized" />
      </h:panelGrid>
      </a4j:outputPanel>
      
      
      <a4j:commandButton immediate="true" value="Reset all"
      action="#{bean.resetAttributes}" reRender="combo_attribute" />
      
      public void resetAttributes() {
      
      attribute = null;
      
      }
      


      any idea?
      Env: RF 3.3.0.GA-myfaces 1.2.5-Facelets 1.1.14. FF navigator.

      regards!