7 Replies Latest reply on Jan 9, 2010 8:01 PM by schnulla

    rich:comboBox's valueChangeListener does not work?

    schnulla

      Hi,


      I don't get valueChangeListener to work :(
      The function is never invoked when I
      change the selection in the comboBox.


      What I'm doing wrong?


      Really need help, thank you!






      <rich:comboBox value="#{currentCountry}" suggestionValues="#{mybean.getCountries()}" directInputSuggestions="true" valueChangeListener="#{mybean.onCountrySelected()}" defaultLabel="Select a country..." />







      @Stateless
      @Scope(SESSION)
      @Name("mybean")
      public class XYZ implements XYZInterface {     
              [...]
           
           public void onCountrySelected(ValueChangeEvent ev) {
                log.info("onCountrySelected() invoked!");
           }
      }