|
I got exactly the same problem. And I have patched the FormTagLib and tested it.
It's actually a deflect in HTML as in HTML, no matter disabled="true" or disabled="false", the select box is disabled. Maurice and I's patch basically make the disabled attribute be write only if the value is true. Reference: A small change is made to write
disabled = "disabled" rather than just disabled The updated version is a more standard-based way to write HTML This fix is not included in 1.0.3. I suppose we have a good solution and the fix is very simple. could it be included in the next release?
Expressions that resolve to a boolean value can now be used for the disabled attrib for g:select, g:radio, and g:checkBox. String values can also be used (true,false,yes,no).
|
|||||||||||||||||||||||||||||||||||||||||||||||
Here is a simplification that works with or without a disabled property: