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

        Martin Grigorov created issue -
        Martin Grigorov made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4m 52s 1 Martin Grigorov 27/Jul/11 15:37

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development