[richfaces-issues] [JBoss JIRA] Commented: (RF-573) Prevent suggestionbox from performing too much Ajax requests via "cache" of a previous requested suggestion list
Denis Petrunin (JIRA)
jira-events at lists.jboss.org
Thu May 14 03:02:46 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12467454#action_12467454 ]
Denis Petrunin commented on RF-573:
-----------------------------------
I'd like to note that caching should be smart. I usually limit the number of suggestions on server side by 50 records, so not all items beginning with "h" are returning on the first ajax request. So the second ajax request should be performed when user types "hi" if the first request returns exactly 50 records. If the first request returns less than 50 records, then filtering can be performed on client side without additional ajax request.
> Prevent suggestionbox from performing too much Ajax requests via "cache" of a previous requested suggestion list
> ----------------------------------------------------------------------------------------------------------------
>
> Key: RF-573
> URL: https://jira.jboss.org/jira/browse/RF-573
> Project: RichFaces
> Issue Type: Feature Request
> Affects Versions: 3.0.1
> Reporter: Brian Preuß
> Assignee: Nick Belaevski
> Fix For: Future
>
>
> It would be very useful to prevent the suggestionbox from performing too many Ajax requests to the server via some sort of cache mechanism, which uses the already requested suggestion list.
> An example:
> 1. type a "h"
> 2. suggestionbox performs Ajax request
> 3. server responds with a list of 20 entries beginning with "h"
> 4. type an "i", so that the input box has the value "hi"
> 5. instead of performing another Ajax request query the already existing list of 20 entries beginning with "h"
> 6. suggestionbox displays all entries beginning with "hi" from the existing list in the DOM tree
> 7. and so on
> This would save a lot of bandwidth and server resources by using the resources of the client browser.
> Certainly there should be a switch to turn on and off this cache feature. Maybe there are some other options that can be added for this kind of functionality.
> Cool feature, ain't it? :D
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list