You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/12/10 11:31:08 UTC
[jira] [Updated] (WW-4253) radiomap xhtml template
[ https://issues.apache.org/jira/browse/WW-4253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-4253:
------------------------------
Description:
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}
was:
In simple/radiomap.ftl setting of class and style occurs twice.
source code:
<#if parameters.cssClass??>
class="${parameters.cssClass?html}"<#rt/>
</#if>
<#if parameters.cssStyle??>
style="${parameters.cssStyle?html}"<#rt/>
</#if>
<#include "/${parameters.templateDir}/simple/css.ftl" />
And css.ftl handle class and style again.
My solution:
Remove:
<#if parameters.cssClass??>
class="${parameters.cssClass?html}"<#rt/>
</#if>
<#if parameters.cssStyle??>
style="${parameters.cssStyle?html}"<#rt/>
</#if>
> 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)