Autocomplete enhancement: cached list for dropdown

UI Components for JSF
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Mar 2012, 13:49

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.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Mar 2012, 18:14

Hmm... I can't imagine that nobody is interested in cached list. Can I create a future request, Cagatay?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

shubforall
Posts: 40
Joined: 13 Jan 2012, 09:24

28 Mar 2012, 07:46

@Oleg - it sounds very good...any update on this?
PrimeFaces 5.2, Websphere liberty profile.

Hamsterbau
Posts: 409
Joined: 28 Dec 2011, 17:44

28 Mar 2012, 09:21

Sounds really nice, especially for small lists. But could blow up client side for large amount of data :)
Primefaces 8.0.7 (PF Extensions 8.0)
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Apr 2013, 13:44

It took 1 whole year to implement this complicated feature :)

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

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

09 Apr 2013, 16:03

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.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Apr 2013, 16:06

I'm pretty sure, someone else would need it ;)

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

09 Apr 2013, 16:08

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?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Apr 2013, 16:10

It should if search string is queried before regardless from input or dropdown.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

09 Apr 2013, 16:12

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?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests