6 Replies Latest reply on Oct 29, 2007 11:26 AM by Jaime Martin

    [suggestionBox][aj4:suport] get param id and display param n

    Lotfi Mellouk Master

      Hellooo;

      Im using suggestion box, with a4j:support, to update form values on the suggestion select event..

      <rich:suggestionbox id="suggestionCompanyId" for="textCompany" tokens=",[" rules="none"
      suggestionAction="#{queryBean.autocompleteCompany}"
      var="result" fetchValue="#{result.name}" rows="0" first="0"
      minChars="2" shadowOpacity="5" border="1" width="200"
      height="150" shadowDepth="0" cellpadding="5"
      style="background-color:yellow">
      <h:column>
      <h:outputText value="#{result.name}" />
      </h:column>
      <h:messages />
      <a4j:support event="onselect"
       reRender="client" action="#{queryBean.findClientOf}" ajaxSingle="false" />
      </rich:suggestionbox>
      


      how to get the result.id on the support action ??
      Id like to display the result.name and recover result.id ..

      thanks!!!