1 Reply Latest reply on Jun 24, 2011 4:13 PM by eunnini

    dynamically create autocomplete

    eunnini

      Hello,

       

      Could you please help me to dynamically create autocomplete component. I've tried everything, but is simply not works

        • 1. Re: dynamically create autocomplete
          eunnini

          This is very frustrating, I'm trying to migrate application to rich 4, but with this I have no success.

           

          I've trued component statically on xhtml page and it works

           

           

          <rich:autocomplete popupClass="sugPopup" value="#{helloBean.input1}"
                          minChars="3" autocompleteMethod="#{helloBean.autocomplete}">
          </rich:autocomplete>
          

           

          But, if I add binding then autocomplete not working

           

           

          <rich:autocomplete popupClass="sugPopup" binding="#{helloBean.auto}" value="#{helloBean.input1}"
                          minChars="3" autocompleteMethod="#{helloBean.autocomplete}">
          </rich:autocomplete>
          

           

          Is it bug?

           

          It can be easily reproduced by adding binding attribute in showcase example

           

          in clientAjax-sample.xhtml add this

          binding="#{autocompleteBean.autoc}"

           

          and in java class AutocompleteBean add attribute and getters and setters

          private UIAutocomplete autoc;