I am trying to get the autocompleter component to work with tap 4.1.1
I used to have tacos:Autocompleter working and wanted to replace it
with the new default component.  I am not getting any exceptions but
there are no values in my drop down.  Here is my page class and html

        public IAutocompleteModel getCompanyModel() {
                log.info("SETTING UP MODEL");
                List<Company> searchList = new ArrayList<Company>();
                
                Collection<Company> comps = getCompanyDao().findAll();
                for(Company c : comps){
                        log.info("Adding company: " + c.getId() +" "+ 
c.getName());
                        searchList.add(c);
                        
                }
                
                return(new DefaultAutocompleteModel(searchList, "id", "name"));
                
        }

        
        @Component(id="autoCompleter", type="Autocompleter", bindings={
                        "model=ognl:companyModel", "value=ognl:TppName",
                        "focus=literal:false"})
        public abstract Autocompleter getAutoCompleter();

----------------------------------------------------------------------------------------------------------------------------

                        <form jwcid="[EMAIL PROTECTED]" 
listener="listener:searchForm">
                                <p><input jwcid="autoCompleter" /> <input 
jwcid="@Submit"
size="200px" value="message:searchTpp" class="searchSubmit" /></p>
                        </form>

--
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to