9 Replies Latest reply on Feb 27, 2009 7:21 AM by Nick Belaevski

    How handle object from rich:suggestionbox ?

    Newbie

      Hi
      I wonder, if possible is to 'handle' object that was selected in rich:suggestionbox?

      i.e.:

      <h:inputText id="nralbum" value="#{AdminController.nrAlbumu}" >
      </h:inputText>
      
      <rich:suggestionbox for="nralbum" suggestionAction="#{AdminController.autocompleteUserByAlbum}"
       var="suggestUser" >
      <h:column>
       <h:outputText value="#{suggestUser.nrAlbum}"/>
      </h:column>
      


      public List <UserInfo> autocompleteUserByAlbum(Object event) {
       .....
      }
      


      And I would like to get value of object 'UserInfo' that was selected as 'suggestUser' outside of 'rich:suggestionBox' (i mean after user select value)
      Is it possible?

      regards and thanks for response