1 Reply Latest reply on Oct 8, 2008 8:31 AM by . .

    ActionParam doesn't work inside SuggestionBox

    Marcos Sousa Newbie

      Hello,

      I need to pass more information to the suggestion action method. I tried do add actionParam components, but didn't work. The code used is:

      <rich:suggestionbox width="200" height="100" for="searchCofigs"
      suggestionAction="#{config.autocomplete}" var="obj" ajaxSingle="true" fetchValue="#{obj.id}">
      ...
      <a4j:actionparam id="param1" value="#{bean.param1}" assignTo="#{config.param1}"/>
      </rich:suggestionbox>


      Any idea to send this parameter to the config bean?

        • 1. Re: ActionParam doesn't work inside SuggestionBox
          . . Newbie

          mcsous,

          Try this code:

          ...
          <rich:suggestionbox width="200" height="100" for="searchCofigs"
          suggestionAction="#{config.autocomplete}" var="obj" fetchValue="#{obj.id}">
          ...
           <a4j:support event="onselect" ajaxSingle="true">
           <a4j:actionparam id="param1" value="#{obj.param1}" assignTo="#{config.param1}"/>
           </a4j:support>
          </rich:suggestionbox>
          



          "mcsous" wrote:
          Hello,

          I need to pass more information to the suggestion action method. I tried do add actionParam components, but didn't work. The code used is:
          <rich:suggestionbox width="200" height="100" for="searchCofigs"
          suggestionAction="#{config.autocomplete}" var="obj" ajaxSingle="true" fetchValue="#{obj.id}">
          ...
          <a4j:actionparam id="param1" value="#{bean.param1}" assignTo="#{config.param1}"/>
          </rich:suggestionbox>


          Any idea to send this parameter to the config bean?