You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Holmes (JIRA)" <ji...@apache.org> on 2007/08/14 14:32:35 UTC

[jira] Assigned: (WW-2110) css_xhtml checkbox.ftl renders one to many when no label exists

     [ https://issues.apache.org/struts/browse/WW-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes reassigned WW-2110:
--------------------------------

    Assignee: James Holmes

> 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
>
> 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.