4 Replies Latest reply on Mar 17, 2011 8:05 AM by Rognvald Eaversen

    Autocomplete and selected item

    Rognvald Eaversen Newbie

      Hello,

       

      I am in the process of migrating a RichFaces webapp from 3.3.3 to 4.0.0 (I'm using 4.0.0.CR1). Right now I'm struggling a little bit with autocomplete field - I'm trying to somehow obtain the selected item's value, so that it could be processed in JavaScript.

       

      Previously I had a rich:suggestionbox, and used suggestion.getSelectedItems()[0], and I had access to the whole selected object. However, the new rich:autocomplete doesn't seem to have such method or property, at least not the one know of.

       

      Do you know if there's any way I could obtain selected items?

       

      Thanks in advance!

      Rognvald Eaversen