28 September 2011

How to check ROLES in EL in JSF 2 and conditionally render components

 In the below code we are checking for role ADMIN
<h:outputText value="abcd" rendered="#{request.isUserInRole('ADMIN')}"/>