Page 1 of 2

Autocomplete enhancement: cached list for dropdown

Posted: 16 Mar 2012, 13:49
by Oleg
Hello Cagatay,

I have looked today dropdown feature in AutoComplete. :-) Usable, but partually. Why do we ALWAYS need to send an ajax request (for completeMethod) to get all items from server? I would expect that list gets cached client-side without roundtrip to server when user clicks on "dropdown" icon next time. This is a similar concept what Tree or TabView have with "cache" attribute. Can you add this enhancement please?

Thanks for your effort.

Re: Autocomplete enhancement: cached list for dropdown

Posted: 16 Mar 2012, 18:14
by Oleg
Hmm... I can't imagine that nobody is interested in cached list. Can I create a future request, Cagatay?

Re: Autocomplete enhancement: cached list for dropdown

Posted: 28 Mar 2012, 07:46
by shubforall
@Oleg - it sounds very good...any update on this?

Re: Autocomplete enhancement: cached list for dropdown

Posted: 28 Mar 2012, 09:21
by Hamsterbau
Sounds really nice, especially for small lists. But could blow up client side for large amount of data :)

Re: Autocomplete enhancement: cached list for dropdown

Posted: 09 Apr 2013, 13:44
by cagatay.civici
It took 1 whole year to implement this complicated feature :)

http://blog.primefaces.org/?p=2577

Re: Autocomplete enhancement: cached list for dropdown

Posted: 09 Apr 2013, 16:03
by Oleg
It took 1 whole year to implement this complicated feature
Better 1 year than never :-) Good job, thanks. But after 1 year I don't need this features anymore :-). At least in current projects.

Re: Autocomplete enhancement: cached list for dropdown

Posted: 09 Apr 2013, 16:06
by cagatay.civici
I'm pretty sure, someone else would need it ;)

Re: Autocomplete enhancement: cached list for dropdown

Posted: 09 Apr 2013, 16:08
by Oleg
Read the blog post... What I meant in the original post (1 year ago), was this feature:

User clicks on dropdown button in the Autocomplete --> list is fetched from the server --> subsequent clicks on the dropdown button should not fetch the list again if the caching is activated.

Does it work in this manner as well?

Re: Autocomplete enhancement: cached list for dropdown

Posted: 09 Apr 2013, 16:10
by cagatay.civici
It should if search string is queried before regardless from input or dropdown.

Re: Autocomplete enhancement: cached list for dropdown

Posted: 09 Apr 2013, 16:12
by Oleg
Well, assume the Autocomplete didn't contain search string before (was empty, no input was done). We click on the dropdown list --> list is fetched --> we click on this button again --> what will happen if the caching feature is active?