Tapestry allows a template to define the same extension-point id twice, which
causes difficult to understand duplicate component id exceptions
----------------------------------------------------------------------------------------------------------------------------------------------
Key: TAP5-1329
URL: https://issues.apache.org/jira/browse/TAP5-1329
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.2.2
Reporter: Howard M. Lewis Ship
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.