Initializing cache for Primefaces autocomplete component on

UI Components for JSF
Post Reply
nunof
Posts: 9
Joined: 21 Aug 2014, 10:50
Location: Portugal

09 Jan 2015, 17:03

I'm using primefaces (5) autocomplete component where the total number of options is around 500. While this is a high number, the data sent is quite simple and the transfer from server to client is quick.

I was wondering if it is possible to preload/cache all autocomplete options on page load in order to avoid any ajax delay while the user is writing text.

Does anyone know of how to do this?
regards
nunof

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

09 Jan 2015, 17:54

Maybe use the Prime-UI version and not the PF version

nunof
Posts: 9
Joined: 21 Aug 2014, 10:50
Location: Portugal

09 Jan 2015, 18:20

Am I able to use bean converters with Prime-UI?
regards
nunof

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

09 Jan 2015, 23:53

No sorry. But I did not know this,was,a requirement for you

arunvc
Posts: 20
Joined: 23 Sep 2010, 11:31

05 Feb 2016, 07:34

have you tried

cache="true" attribute in autocomplete

to cache the result of each filter query

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests