1 Reply Latest reply on Nov 1, 2016 5:18 AM by Ranganathan Kaliyur Mannar

    Customize "AccessDeniedException" default error message.

    Graciliano Ramos Newbie


      I am very new to the picketlink project, I am using 2.7.1.Final on wildfly10. with JSF2 CDI, PrimeFaces etc.

      When user invokes the following method from JSF page(Button).

      It will show a error message "Authorization check failed" on the JSF page.

      How to customize the error message? Thanks.

      import org.picketlink.authorization.annotations.RolesAllowed;


      public class UserBean {



         public String callSysAdminMethod() {

              return "this is system admin method";