Wicket
  1. Wicket
  2. WICKET-4131

Add a non-caching RenderedDynamicImageResource

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Later
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: wicket
    • Labels:
      None

      Description

      RenderedDynamicImageResource ignores all cache settings and keeps its image data once it has been rendered. This is not very useful for tasks like rendering statistics which will be reloaded often but with identical parameters, yet still need to show updated charts.

      Ideally, RenderedDynamicImageResource's getImageData() method should check these cache settings, however, they are not available at that point – please correct me if I'm wrong here.

      Another option would be to simply change getImageData()'s behavior to not cache anything. That might break existing code though, so I think we shouldn't do that right now.

      As a fallback I propose adding a NonCachingRenderedDynamicImageResource that prevents caching. This can then be used as a drop-in replacement for the regular RDIR whenever caching should be avoided.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Carl-Eric Menzel
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development