Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1329

Tapestry allows a template to define the same extension-point id twice, which causes difficult to understand duplicate component id exceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.2
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Probably dates back to 5.1.

      If the parent template looks like:

      <t:extension-point id="foo"/> ... <t:extension-point id="foo"/> ...

      and the child template extends:

      <t:replace id="foo"> <t:form t:id="myForm"> ... </t:replace>

      then the exception is that myForm is a duplicate embedded component id.

      Effectively, Tapestry has "pasted" the <t:form ...> into two places of the parent template.

      Tapestry should have thrown an exception when parsing the parent template.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: