You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2008/05/02 04:37:05 UTC

[jira] Updated: (WW-2231) autocompleter: bug in autocompleter.ftl at disabled="false"

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

Don Brown updated WW-2231:
--------------------------

    Component/s:     (was: Build Management)
                 Plugin - Dojo Tags

> autocompleter: bug in autocompleter.ftl at disabled="false"
> -----------------------------------------------------------
>
>                 Key: WW-2231
>                 URL: https://issues.apache.org/struts/browse/WW-2231
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.9
>         Environment: any browser in html mode (works well for xhtml)
>            Reporter: Pablo Lillia
>            Priority: Minor
>             Fix For: 2.1.2
>
>
> In html4 disabled="false" disables controls. So, in html, if disabled="false", there must no disabled attribute be renderer. In xhtml disabled="false" works as is expected.
> The problem is that when disabled is false, disabled attribute must not be renderer, and all themes renders it.
> autocompleter.ftl has:
> ...
> <#if parameters.disabled?exists>
>  disabled="${parameters.disabled?string?html}"<#rt/>
> </#if>
> ...
> and it may be:
> ...
> <#if parameters.disabled!"false" = "true">
>  disabled="${parameters.disabled?string?html}"<#rt/>
> </#if>
> ...
> So it works in html4 AND xhtml.
> Please note that this problem may afect others controls too!!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.