struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4253) radiomap xhtml template
Date Tue, 10 Dec 2013 10:35:07 GMT

    [ https://issues.apache.org/jira/browse/WW-4253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13844174#comment-13844174
] 

Lukasz Lenart commented on WW-4253:
-----------------------------------

With 2.3.16 you should be able simple override that one file with new theme overriding functionality:
- create template/mytheme
- define theme.properties with parent = xhtml
- create template/mytheme/radiomap.ftl with you content
- use your new theme 

> radiomap xhtml template
> -----------------------
>
>                 Key: WW-4253
>                 URL: https://issues.apache.org/jira/browse/WW-4253
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.4
>            Reporter: Mathieu Jambou
>              Labels: easyfix
>             Fix For: 2.3.17
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> In simple/radiomap.ftl setting of class and style occurs twice.
> source code:
> {code:xml}
> <#if parameters.cssClass??>
>  class="${parameters.cssClass?html}"<#rt/>
> </#if>
> <#if parameters.cssStyle??>
>  style="${parameters.cssStyle?html}"<#rt/>
> </#if>
> <#include "/${parameters.templateDir}/simple/css.ftl" />
> {code}
> And css.ftl handle class and style again.
> My solution:
> Remove:
> {code:xml}
> <#if parameters.cssClass??>
>  class="${parameters.cssClass?html}"<#rt/>
> </#if>
> <#if parameters.cssStyle??>
>  style="${parameters.cssStyle?html}"<#rt/>
> </#if>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message