I want to disable <form:input> with the attribute disabled, but it does not work.
<td class="value"> <sec:authorize access="hasAnyRole('ROLE_EDIT_DEVICE_INSTALL_DATE')"> <form:input path="installDt" maxlength="10" size="10" cssClass="installDatePicker" /> <form:errors path="installDt" cssClass="errormsg" /> </sec:authorize> <sec:authorize access="!hasAnyRole('ROLE_EDIT_DEVICE_INSTALL_DATE')"> <form:input path="installDt" maxlength="10" size="10" cssClass="installDatePicker" disabled="disabled" /> <form:errors path="installDt" cssClass="errormsg" /> </sec:authorize> </td>
Does anyone have any ideas to solve this problem?
source share