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: Component Management
Affects Versions: 2.0.9
Environment: any browser in html mode (works well for xhtml)
Reporter: Pablo Lillia
Priority: Minor
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.