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

ComponentStringResourceLoader must not include the index of repeater items in resource lookup but still resolve properties to them

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.18, 1.5-RC7
    • 1.4.19, 1.5.1
    • wicket
    • None

    Description

      Issue when using a StringResourceModel to lookup a resource for a component underneath a repeating view.

      When a StringResourceModel is used by a component under a repeating view, the ComponentStringResourceLoader doesn't find the resource.

      This seems to be a problem introduced by the fix for 3671.

      In ComponentStringResourceLoader, getResourcePath excludes all AbstractRepeaters, however getComponentStack doesn't leading to the two being out of sync for the elements of the component hierarchy under the repeating view.

      Attachments

        1. resourceloadingissue.patch
          0.5 kB
          Nathan Messer
        2. resourceloadingissue.patch
          0.5 kB
          Nathan Messer
        3. resource-lookup.zip
          34 kB
          Nathan Messer
        4. resource-lookup2.zip
          44 kB
          Nathan Messer

        Activity

          People

            pete Peter Ertl
            nathan.messer Nathan Messer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: