mercredi 1 avril 2015

Spring form input can't be disable

I want to disable a with the attribute disabled but it's not working.



<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 anybody have any idea to solve it ?


Aucun commentaire:

Enregistrer un commentaire