Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: Release 1.5.6
-
Fix Version/s: Release 1.5.7
-
Component/s: Tag Library
-
Labels:None
Description
When a page has a definition tag that encompasses multiple render tags, each of which contains a component tag having the same name, the first component definition is used for both renders. For example, the following should show "Block #1 content" then "Block #2 content." Instead, it shows "Block #1 content" twice.
index.jsp
<s:layout-render name="definition.jsp" />
definition.jsp
<s:layout-definition> <h1>Block #1</h1> <s:layout-render name="component.jsp"> <s:layout-component name="content">Block #1 content</s:layout-component> </s:layout-render> <h1>Block #2</h1> <s:layout-render name="component.jsp"> <s:layout-component name="content">Block #2 content</s:layout-component> </s:layout-render> </s:layout-definition>
component.jsp
<s:layout-definition>
<s:layout-component name="content" />
</s:layout-definition>