java - Spring form input can't be disable -


i want disable <form:input> attribute disabled, 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 have idea solve ?

to disable it, use disabled=true. accepts true|false.

<form:input path="installdt"  maxlength="10" size="10"  cssclass="installdatepicker" disabled="true" /> 

Comments

Popular posts from this blog

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -

How to run C# code using mono without Xamarin in Android? -