Recently, I played with the spring formlib tag and came across a pretty troubling phenomenon.
<form:select path="whatever" disabled="${true}">
Will display a select element that is NOT disabled
<form:select path="whatever" disabled="${'true'}">
Will display a select element that is disabled by IS.
This tells me that the tag expects a string in this attribute and refuses to force any boolean values ββ(perhaps it checks the type first).
The effect is that I cannot do something like <form:select path="whatever" disabled="${someOtherfield.selectedId != -1}" /> , which often happens on our system.
Am I just missing some of the functionality of form taglibs? Is this a legit design decision? Defect?
java spring spring-mvc jsp
The trav
source share