8 Replies Latest reply: Jul 17, 2012 12:19 AM by Vinay Agarwal-Oracle RSS

    ADF securitycontext.userInRole


      ADF version version 10.3.1

      I am trying to replace securitycontext.userInRole in several places where I am setting the rendered property for buttons etc

      I am no longer extracting roles from Weblogic and instead from the database. I have a method that I am using to decide whether the user has access to certain items on the page or whether they can modify them.

      Instead of using the following

      readOnly="#{securityContext.userInRole[ADMIN] == false}">

      what terminalogy can I use to call my method instead.

      Would something like the following work

      readonly="#{bindings.getUserRole.execute['ADMIN'] == false}">