AutoComplete Caching and Empty Message

AutoComplete is a popular component in PrimeFaces and we keep working on to improve it. There are two new features we would like to share;

Caching

When new cache attribute is enabled, autocomplete will cache previous server based suggestions on client side and if same query is provided, it will return the data from cache. There is also a cacheTimeout feature defined in milliseconds to automatically clear cache to clear up memory. This feature is extremely useful to reduce load on server.

Empty Message

When there are no records found to suggest, by default autocomplete just does nothing. In case you’d like to provide a feedback to the user, you can provide your own message using emptyMessage attribute and autoComplete will display it instead.

These two nice enhancements will be in next week’s 3.5.3 release for ELITE and PRO Users, Community users can access these features from public trunk aka 4.0-SNAPSHOT and merge with their forks if required.