I'm just a new to Spring security.

Today I just wonder how can I make a textbox as readonly depends on account's role?

For example, If account's role is not Admin I want to make textbox as readonly.

I tried this code for it, but It didn't work.

```
<sec:authorize access="hasAnyRole('ROLE_ADMIN')">
    <input type="text" id="userID">
</sec:authorize>

```

Thanks for your help.