In my application i am using rich:suggestion for autocomplete.
On selecting of an item from the matched list i want to populate the result value to some out put field. how can can achieve this. i'm very new to rich faces. pls help with the code.
my design is like that
<h:inputText id="suggest" ></h:inputText> <rich:suggestionbox for="suggest" suggestionAction="#{mybean.autoComplete}" var="result" fetchValue="#{result.name}" > <h:column > <h:outputText value="#{result.name}" ></h:outputText> <h:outputText value="#{result.state}" ></h:outputText> <h:outputText value="#{result.zip}" ></h:outputText> </h:column> </rich:suggestionbox>
http://labs.jboss.com/wiki/RichFacesSuggestionGettingAdditionalProperties
in this example - just reRender some field which binded to the property that will be stored during this request.