Wicket
  1. Wicket
  2. WICKET-3935

DynamicImageResource shouldn't be that lazy

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5-RC6
    • Component/s: wicket
    • Labels:
      None

      Description

      Currently DynamicImageResource asks for the image data in WriteCallback#write(Attributes). This is a bit too late because there is no way to say "there is no image".
      I'm suggesting to move the call to getImageData() a bit earlier so if it returns null then 404 is returned.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development