struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David H. DeWolf (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-1328) Implement theme inheritance
Date Thu, 05 Oct 2006 21:06:15 GMT
     [ http://issues.apache.org/struts/browse/WW-1328?page=all ]

David H. DeWolf updated WW-1328:
--------------------------------

    Attachment: hierarchicial-themes.patch

Implements Hierarchical Theme Loading for Freemarker templates and provides unit tests for
the core changes.

This patch only includes the API changes, not the actual template changes needed to leverage
this in core templates.  The ftl changes may be very painful as there are currently many hacks
to get around the fact that this isn't currently implemented.

> Implement theme inheritance
> ---------------------------
>
>                 Key: WW-1328
>                 URL: http://issues.apache.org/struts/browse/WW-1328
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Views
>    Affects Versions: WW 2.2.2
>            Reporter: Nick Hill
>             Fix For: 2.0.2
>
>         Attachments: hierarchicial-themes.patch
>
>
> If you look at one of the xhtml themes, for example, text.ftl, it is hard coded to use
the xhtml controlfooter. This poses a problem for overridding the theme.
> Example xhtml/text.ftl:
> <#include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl" />
> <#include "/${parameters.templateDir}/simple/text.ftl" />
> <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
> Notice the controlfooter does not use ${parameters.theme} but rather is hard coded to
xhtml. 

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

        

Mime
View raw message