9 Replies Latest reply on Feb 18, 2008 5:16 AM by Lotfi Mellouk

    suggestionBox send name and id to backing bean

    Lotfi Mellouk Master

      hello,

      Id like to use suggestionBox to display customer name, but I need the its value.

      I thought to use a4j:actionParam into suggestionBox

      <rich:suggestionbox id="suggestionCompanyId" for="companySuggest"
      tokens=",[" rules="none"
      suggestionAction="#{bean.autocomplete}"
      var="result" fetchValue="#{result.name}" immediate="true">
      <a4j:support event="onselect" ajaxSingle="false">
      <a4j:actionparam name="company" value="#{result.companyId}" />
      </a4j:support>
      <h:column>
      <h:outputText value="#{result.name}" />
      </h:column>
      </rich:suggestionbox>
      


      the parameter send to the server is always null,as I use assignedTo or name..

      thanks!!