Wicket
  1. Wicket
  2. WICKET-4738

DownloadLink doesn't wrap the String model used for file name nor does it detach

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1.0, 1.5.9
    • Component/s: None
    • Labels:
      None

      Description

      Component DownloadLink doesn't call method wrap of class Component on parameter fileNameModel. This causes models like StringResourceModel to not resolve resource bundles correctly.
      See the discussion here: http://stackoverflow.com/questions/12196533/how-to-use-wicket-stringresourcemodel-in-downloadlink

      The patch seems quite trivial.

      Detachment is also missing.

      1. wicket-4738.patch
        0.6 kB
        Andrea Del Bene

        Activity

        Hide
        Sven Meier added a comment -

        Thanks Andrea!

        Show
        Sven Meier added a comment - Thanks Andrea!

          People

          • Assignee:
            Sven Meier
            Reporter:
            Andrea Del Bene
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development