3 Replies Latest reply on Sep 19, 2008 3:52 PM by Jony Santos

    Rich Suggestion Box Help

    Muruga boopathy Newbie
      Hi there,
        I am new to Rich Faces, i want to load a table data to rich:suggestionBox as suggestion, can you anyone post the sample code for bean which does the autoComplete work, here is my piece of code which i tried with static list .

      public List autoComplete(Object event){
                    String pref = event.toString();
                    resultList.add("Chennai");
                    resultList.add("Bangalore");
                    resultList.add("Hyderabad");
                    resultList.add("Coimbatore");
           return resultList;
      }

      RichFaces :

      <h:inputText value="#{bankBean.nationality}" id="nationality"/>
           <rich:suggestionbox id="suggestionBoxId" for="nationality"
              suggestionAction="#{individualApplicantHome.autoComplete}" var="resultList"
              nothingLabel="No capitals found" columnClasses="center">
             <h:column>
           <h:outputText value="#{resultList}"/>
             </h:column>
         </rich:suggestionbox>

      There is no exception no errors atall . Please suggest me