[
https://issues.apache.org/struts/browse/WW-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Holmes resolved WW-2110.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
2.0.10
Fixed on the 2.0.X branch in SVN revision 565842.
Fixed on the trunk (Struts 2.1) in SVN revision 565844.
> css_xhtml checkbox.ftl renders one </div> to many when no label exists
> ----------------------------------------------------------------------
>
> Key: WW-2110
> URL: https://issues.apache.org/struts/browse/WW-2110
> Project: Struts 2
> Issue Type: Bug
> Components: Misc
> Affects Versions: 2.0.8, 2.0.9
> Reporter: Torbjorn Gustafsson
> Assignee: James Holmes
> Priority: Minor
> Fix For: 2.0.10, 2.1.0
>
>
> css_xhtml checkbox.ftl renders one </div> to many when no label exists.
> The issue is that it is using the generic controlfooter.ftl which will render
> an extra </div> if the label position is top.
> Replacing the controlfooter.ftl include with:
> <#if parameters.label?exists>
> <#if parameters.labelposition?default("top") == 'top'>
> </div> <#rt/>
> <#else>
> </span> <#rt/>
> </#if>
> </#if>
> </div>
> will only render the closing div (or span) when a label exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.