[ 
http://www.stripesframework.org/jira/browse/STS-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frederic Daoud closed STS-553.
------------------------------

    Resolution: Not a Bug

FreeMarker issue.

> 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";]]
> [@s["layout-render"] name="/render_test/default.jsp" pageTitle="Using A 
> Layout"]
>     [@s["layout-component"] name="contents"]
>         [@s["layout-render"] name="/render_test/nested.ftl"][/@]
>     [/@]
> [/@]
> default.ftl
> [#ftl]
> [#assign s=JspTaglibs["http://stripes.sourceforge.net/stripes.tld";]]
> [@s["layout-definition"]]
> <html>
>         <head>
>             <title>Examples: ${pageTitle}</title>
>         </head>
> <body>
> start<br/><br/>
> before component<br/>
> [@s["layout-component"] name="contents" /]
> after component<br/><br/>
> </body>
> </html>
> [/@]
> nested.ftl
> [#ftl]
> [#assign s=JspTaglibs["http://stripes.sourceforge.net/stripes.tld";]]
> [@s["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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to