Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4131

Add a non-caching RenderedDynamicImageResource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Later
    • 1.5.2
    • None
    • wicket
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmenzel Carl-Eric Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: