1 Reply Latest reply on Aug 6, 2012 11:55 AM by ajanz

    getting hidden value from suggestbox selection

    ajanz

      i use richfaces 3.3.3

       

      i got a suggestbox with some identica list entries for selection, but with different attributes. so i must know which elment of the list was choosen.

       

      i tried this

       

      <h:inputText id="suggest_input" />

         <rich:suggestionbox for="suggest_input" minChars="1"

             fetchValue="" nothingLabel="no entry found"

               suggestionAction="#{myMB.suggestData}" var="suggest">

               <h:column>

                  <h:outputText value="#{suggest.propertyA}" />

               </h:column>

               <h:column>

                  <h:outputText value="#{suggest.propertyB}" />

               </h:column>

                  <a4j:support ajaxSingle="true" event="onselect"

                      action="#{myMB.refreshData}" reRender="data_id">

                  <a4j:âctionParam  name="paramkey" value="#{suggest.key}"

                          target="#{myMB.key}" />

               </a4j:support>

        </rich:suggestionbox>

       

       

      but the actionparam "paramkey" alwasy is null. although "suggest.key" never is null.

       

      any ideas what is wrong?