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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -