2 Replies Latest reply on Apr 10, 2011 8:36 AM by fred-at-coding

    rich:autocomplete valueChangeListener not triggered

    fred-at-coding

      Hi,

        I'm still trying to make running the <rich:autocomplete> component, with the ability to catch any changes, on user selection.

       

      I've done this:

       

      <rich:autocomplete    id="autocompleteInput"

                            autocompleteMethod="#{AuthorController.autocompleteSearchEditor}"

                            showButton="false"

                            mode="cachedAjax"

                            attached="true"

                            minChars="2"

                            autoFill="true"

                            layout="table"

                            var="autocomplete_editor"

                            value="#{AuthorController.currentEditBook.teditor.name}"

                            fetchValue="#{autocomplete_editor.name}"

                            valueChangeListener="#{AuthorController.selectInputValueChanged}"

                            >

      ...

      </rich:autocomplete>

       

      The AuthorController bean is like this:

       

      @ManagedBean( name="AuthorController" )

      @SessionScoped

      public class AuthorController {

      ...

       

           public void selectInputValueChanged(ValueChangeEvent event)

            {

              syslog.info("[AuthorController-selectInputValueChanged] - new event seen !");

            }

       

      }

       

       

       

       

      My main problem is that whenever I make a change in my selection or else, never the "valueChangeListener" is called. (no log entry found...)

      Where am I wrong ?

       

      I've also tried with some <a4j:ajax listener=""/> but i've got the same issue.

       

       

      Thanks,

      Fred