[
http://www.stripesframework.org/jira/browse/STS-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591#comment-12591
]
Ben Gunter commented on STS-817:
--------------------------------
I think the best thing to do at this point -- now that the things I really feel
were flaws are fixed -- is recognize that there are going to be limitations
with the layout tags, and they aren't going to be 100% compatible with the old
ones. As noted elsewhere, I'm not going to revert to the old, buffered code
because there are too many advantages to the new, streaming code.
The best thing to do when you encounter something like this is to think about
other ways to do what you're trying to do. Failing that, the buffered layout
tags will be available in Stripes 1.5.7 by using an alternate taglib URI:
http://stripes.sourceforge.net/stripes-buffered-layout.tld
> Stack Overflow when using a layout with an existing component name
> ------------------------------------------------------------------
>
> Key: STS-817
> URL: http://www.stripesframework.org/jira/browse/STS-817
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5.6
> Reporter: Peter Mahoney
> Assignee: Ben Gunter
> Priority: Minor
> Fix For: Release 1.5.7, Release 1.6
>
>
> I have used this pattern successfully in 1.5.3, but it fails in
> 1.5.6-SNAPSHOT:
> Page:
> <s:layout-render name="testlayout.jsp">
> <s:layout-component name="pageContent">
> HELLO
> <s:layout-render name="testinclude.jsp">
> <s:layout-component name="pageContent">
> INCLUDED
> </s:layout-component>
> </s:layout-render>
> </s:layout-component>
> </s:layout-render>
> testlayout.jsp:
> <s:layout-definition>
> LAYOUT
> ${pageContent}
> </s:layout-definition>
> testinclude.jsp:
> <s:layout-definition>
> INCLUDE:
> ${pageContent}
> </s:layout-definition>
> The outout I expect is:
> LAYOUT HELLO INCLUDE: INCLUDED
> The output I get is:
> LAYOUT HELLO INCLUDE: HELLO INCLUDE: HELLO INCLUDE: ... repeated until a
> stack overflow
> In this simple test case, renaming the included layout component fixes this
> problem, but in my actual case it then fails to include anything. I am not
> sure why that is, but suspect the cause is the same as in this simple case.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development