Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.4.16
    • Fix Version/s: None
    • Component/s: wicket-extensions
    • Labels:
    • Environment:
      Any

      Description

      Adds caching support for the AutoCompleteBehavior behavior. Also allows this feature to be disabled.

      1. wicket-autocomplete-cache.patch
        4 kB
        Edwin Ferreira
      2. wicket-autocomplete-cache.patch
        6 kB
        Edwin Ferreira

        Activity

        Hide
        Edwin Ferreira added a comment -

        Patch that adds caching to AutoCompleteBehavior.

        Show
        Edwin Ferreira added a comment - Patch that adds caching to AutoCompleteBehavior.
        Hide
        Martin Grigorov added a comment -

        Object.hasOwnProperty is not portable (problems in IE).
        Why do you prefer it instead of using dict[someKey] ?

        This caching may need support for expiration/eviction.
        For example if you sell goods and your user looks for good1 and this is cached at client side, later she makes the same lookup and this time the product is out of stock then the backend will not return it but with cache it will still show it and be able to send it back to the backend as "selected" product.

        Show
        Martin Grigorov added a comment - Object.hasOwnProperty is not portable (problems in IE). Why do you prefer it instead of using dict [someKey] ? This caching may need support for expiration/eviction. For example if you sell goods and your user looks for good1 and this is cached at client side, later she makes the same lookup and this time the product is out of stock then the backend will not return it but with cache it will still show it and be able to send it back to the backend as "selected" product.
        Hide
        Martin Makundi added a comment -

        Please add optional timer (cache lifetime: -1= disabled, 0=eternal, nnn=milliseconds) to autocomplete cache eviction.

        Show
        Martin Makundi added a comment - Please add optional timer (cache lifetime: -1= disabled, 0=eternal, nnn=milliseconds) to autocomplete cache eviction.
        Hide
        Edwin Ferreira added a comment -

        Cache expiration support added.

        Show
        Edwin Ferreira added a comment - Cache expiration support added.

          People

          • Assignee:
            Unassigned
            Reporter:
            Edwin Ferreira
          • Votes:
            4 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development