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?
found a solution using f:setPropertyActionListener
http://www-02.imixs.com/roller/ralphsjavablog/entry/richfaces_suggestionbox_and_hidden_field
further i had to move my bean from EVENT to PAGE scope