I've been playing around with the spring form taglib lately and came across a fairly disturbing phenomenon.
<form:select path="whatever" disabled="${true}">
Will render a select element that is NOT disabled
<form:select path="whatever" disabled="${'true'}">
Will render a select element that IS disabled.
This indicates to me that the tag expects a string in that attribute and is refusing to coerce any boolean values (possibly checking the type first).
The impact is that I'm unable to do something like <form:select path="whatever" disabled="${someOtherfield.selectedId != -1}" />
which is something that happens fairly often in our system.
Am I simply missing some part of the form taglibs functionality? Is this a legitimate design decision? A defect?