Stripes

Layout renders wrong component definition

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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>

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    05/Mar/12 8:54 AM
    Updated:
    05/Mar/12 10:33 AM
    Resolved:
    05/Mar/12 10:33 AM