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.9, 2.0.8
Reporter: Torbjorn Gustafsson
Priority: Minor
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.