I use a richfaces:suggestionBox in the following manner:
<h:inputText
value="#{myBean.data}">
<rich:suggestionbox width="100" ajaxSingle="true"
selfRendered="true" var="result"
suggestionAction="#{autoBean.autocomplete}"
>
<h:column>
<h:outputText value="#{result.getValue('txtsugg')}" />
</h:column>
</rich:suggestionbox>
All goes well, bu now I need to intercept the user selection because when the user select a particular value I need to do an action over the server and after refresh a piece of page.
For example:
1) user write 'ala'
the suggestionbox suggest him 'ala1' 'ala2' 'ala3' ...
2) user select 'ala2' (press enter, click over it or change focus)
a server action must be called and a refresh of one piece of the page.
Hope I explain my problem.