This content has been marked as final.
Show 4 replies
-
1. Re: Set id to hidden field using SuggestionBox.
ilya_shaikovsky Sep 12, 2007 6:19 AM (in response to mcsous)You may use onselect client handler to make a request with support or perform some JS actions on client you need.
-
2. Re: Set id to hidden field using SuggestionBox.
mcsous Sep 12, 2007 12:51 PM (in response to mcsous)Could you give one example to do that?
-
3. Re: Set id to hidden field using SuggestionBox.
brachie Nov 22, 2007 6:38 PM (in response to mcsous)Hi,
I am facing the same problem. I want to send the id of the selected item from the suggestionbox to the server.. Any sample code how to accomplish that?
Thanks!
b. -
4. Re: Set id to hidden field using SuggestionBox.
ilya_shaikovsky Nov 23, 2007 6:06 AM (in response to mcsous)<rich:suggestionbox width="200" height="200" for="test" suggestionAction="#{bean.autocomplete}" var="cap"> <h:column> <f:facet name="header"> <h:outputText value="Sometext"></h:outputText> </f:facet> <h:outputText value="#{cap.text}"></h:outputText> </h:column> <a4j:support event="onselect" action="#{bean.action}"> <f:setPropertyActionListener value="#{cap.label}" target="#{bean.property1}" /> </a4j:support> </rich:suggestionbox>
should works for you