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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.18, 1.5-RC7
    • Fix Version/s: 1.4.19, 1.5.1
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: