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

AutoLinkResolver looks in the wrong scope

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.7
    • 1.5.8
    • wicket
    • None

    Description

      When turning on MarkupSettings#automaticLinking, AutoLinkResolver is supposed to touch tags like <img> and <a> and set their src/href attributes so that packaged resources are correctly referenced.

      I found a situation where that does not work: If you have a panel, and e.g. an <img> tag inside that panel, and the <img> tag is NOT enclosed in a container component, it looks for the resource in the scope of the surrounding component, not in the panel's scope. It obviously can't find it there, so it just dumps the raw attribute.

      If you put that <img> tag into a MarkupContainer (like WMC) then it works correctly. So it looks like the scope is off-by-one or something like that. I'll investigate.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: