Nested layout-render with freemarker renders in incorrect order
---------------------------------------------------------------

                 Key: STS-553
                 URL: http://www.stripesframework.org/jira/browse/STS-553
             Project: Stripes
          Issue Type: Bug
          Components: Formatting
    Affects Versions: Release 1.4.3
         Environment: tomact6
            Reporter: Daniel Banfield
            Priority: Minor


Apologies if this is a freemarker bug, but certainly an issue when using 
freemarker with stripes.

nested use of layout-render is provided as similar to the following:

HelloWorld.jsp

<stripes:layout-render name="/render_test/default.jsp" pageTitle="Using A 
Layout">
    <stripes:layout-component name="contents">
        <stripes:layout-render name="/render_test/nested.jsp"/>
    </stripes:layout-component>
</stripes:layout-render>

default.jsp

<stripes:layout-definition>
<html>
        <head>
            <title>Examples: ${pageTitle}</title>
        </head>
<body>
start<br/><br/>
before component<br/>
<stripes:layout-component name="contents"/>
after component<br/><br/>
</body>
</html>
</stripes:layout-definition>


nested.jsp

<stripes:layout-definition>
Nested Layout Definition<br/>
</stripes:layout-definition>

This renders correctly as the following:
----------------
start

before component
Nested Layout Definition
after component
------------------

This is correct! hurray!

Now try the same using freemarker:

HelloWorld.ftl

[#ftl]
[#assign s=JspTaglibs["http://stripes.sourceforge.net/stripes.tld";]]
[EMAIL PROTECTED]"layout-render"] name="/render_test/default.jsp" 
pageTitle="Using A Layout"]
    [EMAIL PROTECTED]"layout-component"] name="contents"]
        [EMAIL PROTECTED]"layout-render"] name="/render_test/nested.ftl"][/@]
    [/@]
[/@]

default.ftl

[#ftl]
[#assign s=JspTaglibs["http://stripes.sourceforge.net/stripes.tld";]]
[EMAIL PROTECTED]"layout-definition"]]
<html>
        <head>
            <title>Examples: ${pageTitle}</title>
        </head>
<body>
start<br/><br/>
before component<br/>
[EMAIL PROTECTED]"layout-component"] name="contents" /]
after component<br/><br/>
</body>
</html>
[/@]


nested.ftl

[#ftl]
[#assign s=JspTaglibs["http://stripes.sourceforge.net/stripes.tld";]]
[EMAIL PROTECTED]"layout-definition"]]
Nested Layout Definition<br/>
[/@]

This renders the following:
----------
Nested Layout Definition
start

before component
after component
----------

As you can see, it renders incorrectly. Perhaps a freemarker bug, but please 
advise. 
Thanks


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to