I've been doing some Spring -based web forms work recently and one area of interest was around disabling certain input fields until particular values were set in the form-backing object. I wanted to ensure that particular radio buttons were disabled if the value was not what I expected. Below is a statically disabled Spring radiobutton: <form:radiobutton path="name" disabled="true"/> For example's sake, I wanted to disabled the button if the name field of the form-backing object was "beacock", so what I needed was a boolean variable which captured the output of my particular test: <c:if test="details.name eq 'beacock'"> <c:set var="isMe" value="true"/> </c:if> I could then use the above isMe variable in the following: <form:radiobutton path="name" disabled="${isMe}"/> Simple huh? But you can go a step further in the strive for clean code, the tag can tak
eng mgr / leader / full stack / java / agile / tdd / security / aws / go