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

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

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.


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

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ 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.