<rich:suggestionbox width="200" height="200" for="test" suggestionAction="{bean.autocomplete}" var="cap">
<h:column>
<h:outputText value="{cap.text}"/>
</h:column>
<a4j:support event="onselect" action="{bean.action}">
<f:setPropertyActionListener value="{cap.label}" target="{bean.property1}" />
</a4j:support>
</rich:suggestionbox>
In the example "onselect" event is used for sending selected value to the server. It's also possible to pass additional fields of selected object (which don't belong to "fetchvalue" attribute)
Comments