1 Reply Latest reply on Mar 9, 2009 12:35 PM by Nick Belaevski

    rich:suggestionbox and a4j:support don't cowork

    asm web Newbie

      Hi all,

      am kind of new to richfaces so I have to say that I do not know really well the behaviour.
      In my page I have a suggestion box where I pull the data from the db and I want that another component to be updated once the user has chosen from the suggestion box. This is my code

      ...

      <h:inputText id="text" />
      <rich:suggestionbox id="suggestionBoxId" for="text" tokens=",[]"
      rules="#{suggestionBox.rules}"
      suggestionAction="#{bean.autocomplete}" var="result"
      fetchValue="#{clients}" rows="10"
      nothingLabel="No capitals found"
      usingSuggestObjects="true"
      >
      <h:column>
      <h:outputText value="#{result.name}" />
      </h:column>
      <a4j:support event="onselect"
      action="#{bean.changeClients}"
      ajaxSingle="true" limitToList="true"
      rerender="order">
      </a4j:support>
      </rich:suggestionbox>

      ...


      the popup of the suggestion box display correctly the result but when I choose the option I don't see the a4j event fired. On firebug I see a javascript error:
      this._form is null
      http://localhost:8080/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.html
      Line 187


      any help would be appreciated