I hope someone in the Forums will answer my posting.
Even if user has same Role but different Privileges then certain fields will be displayed as read-Only Fields
The following code snippet will either hide or render the component . But we want it to render as read-only fields
Code:
<acegijsf:authorize ifAllGranted="ROLE_USER">
<h:inputText id="manufName" value="#{manufacturerBean.namsManufacturer.name}" disabled="#{manufacturerBean.disableMode}" required="true">
</h:inputText>
</acegijsf:authorize>
The above UI Component should render as editable field for ROLE_ADMIN and read-only field for ROLE_USER