This content has been marked as final.
Show 5 replies
-
1. Re: SuggestionBox and Objects, rather than strings
james_hays Mar 9, 2007 5:06 PM (in response to james_hays)Essentially, I need to have the same functionality as if I had used a dropdown box and used a4j's support component for updating a bean and rerendering a component.
Unfortunately, I can't use a dropdown here due to the size of the list.
Thanks. -
2. Re: SuggestionBox and Objects, rather than strings
max.katz Mar 9, 2007 6:51 PM (in response to james_hays)If I understand you correctly, you can use <a4j:support> inside the rich:suggestionBox, for example:
<rich:suggestionbox for="proposal" ignoreDupResponses="true" minChars="3"<rich:suggestionAction="#{newProfileRecord.autoCompleteProposals}" ajaxSingle="true" var="proposal" fetchValue="#{proposal.projId}" width="500" height="200" status="proposal_status"> <h:column> <h:outputText value="#{proposal.projId}"/> </h:column> <h:column> <h:outputText value="#{proposal.proposalName}"/> </h:column> <a4j:support event="onselect" action=".." reRender=".."/> </rich:suggestionbox>
-
3. Re: SuggestionBox and Objects, rather than strings
max.katz Mar 9, 2007 6:53 PM (in response to james_hays)Sorry about pasting the code incorrectly...
-
4. Re: SuggestionBox and Objects, rather than strings
james_hays Mar 9, 2007 7:07 PM (in response to james_hays)But what value is injected into which bean?
Essentially, I want the proposal object that is present when creating the list when I click on it. -
5. Re: SuggestionBox and Objects, rather than strings
max.katz Mar 9, 2007 7:24 PM (in response to james_hays)I'm not sure if I understand you completely but you have only one input field on a page (proposal), so its value will be injected.