This content has been marked as final.
Show 2 replies
-
1. Re: combobox vs suggestion
nbelaevski Jun 10, 2009 4:48 AM (in response to jaand96)Hi,
Usevalue="#{bean.property}"
to get the value input. You can add a4j:support, that each change on the client will update server model as well - check example at livedemo. -
2. Re: combobox vs suggestion
jaand96 Jun 10, 2009 5:12 AM (in response to jaand96)Thanks!
Got a4j:support to work just before i read your answer, so'll stick with that for now:<rich:suggestionbox for="nextpp" var="pp" suggestionAction="#{ProductionPointController.autocompleteProductionPoint}" minChars="2" requestDelay="500"> <h:column> <h:outputText value="#{pp.ak1}" /> </h:column> <h:column> <h:outputText value="#{pp.name}" /> </h:column> <a4j:support event="onselect" action="#{ProductionPointController.setSelectedNextProductionPoint(pp)}"></a4j:support> </rich:suggestionbox>