3 Replies Latest reply on Jun 23, 2009 5:01 AM by Markus Eisele

    rich:comboBox, a4j:support and valueChangeListener

    Markus Eisele Newbie

      Hi all,

      I was trying to get the a4j:support example up and running. All works fine, if I use the Dynamic selects demo (http://livedemo.exadel.com/richfaces-demo/richfaces/support.jsf?tab=selects&cid=562439) but if I only change the rich:inplaceSelect to a rich:comboBox the valueChangeListener gets no longer called.

      Any ideas, what could be the problem?

      
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
       <h:form>
       <h:panelGrid columns="2">
       <h:outputText value="Choose the produce type:"/>
       <rich:comboBox value="#{selectsBean.currentType}" valueChangeListener="#{selectsBean.valueChanged}" defaultLabel="Click here to select">
       <f:selectItems value="#{selectsBean.firstList}"/>
       <a4j:support event="onviewactivated" reRender="items, label" ajaxSingle="true"/>
       </rich:comboBox>
       <a4j:outputPanel id="label">
       <h:outputText value="Choose concrete product:" rendered="#{!empty selectsBean.secondList}"/>
       </a4j:outputPanel>
       <a4j:outputPanel id="items">
       <rich:inplaceSelect value="#{selectsBean.currentItem}" rendered="#{!empty selectsBean.secondList}" defaultLabel="Click here to select">
       <f:selectItems value="#{selectsBean.secondList}"/>
       </rich:inplaceSelect>
       </a4j:outputPanel>
       </h:panelGrid>
       </h:form>
      </ui:composition>
      
      


      thanks for any help,
      Markus