3 Replies Latest reply on Jan 23, 2008 8:37 PM by Richard Ferrante

    getting value from suggestionBox

    Richard Ferrante Newbie

      I'm trying to get an ID value for a person (or the underlying object) from a suggestion box in which the user types in the person's last name.

      Here's my code:

      <s:decorate id="curatorNameDecorationInstance" template="layout/edit.xhtml">
       <ui:define name="label">Curator Last Name: </ui:define>
       <h:inputText id="searchString" value="#{showsHome.instance.curatorSelection}" size="30">
       <rich:suggestionbox suggestionAction="#{personSearch.autocomplete}"
       <h:outputText value="#{person.lastName}"/>
       <a:support event="onselect" action="#{showsHome.instance.echo(person.firstName)}">
       <f:setPropertyActionListener value="#{person}" target="#{showsHome.instance.curator}" />

      I'm basing what I'm doing on the examples and the RichFacesSuggestionGettingAdditionalProperties cookbook, but I'm obviously missing something.

      Any suggestions would be greatly appreciated.