Hello,
can I use @PreAuthorize or @Secured annotation inside a JSF Managed Bean. I've attempt to do this but I'm not get success. I've insert the code above in applicationContext file:
in faces-config.xmlCode:<context:component-scan base-package="prpa.athos.MBean" /> <global-method-security pre-post-annotations="enabled" > </global-method-security>
When I put @PreAuthorize or @Secured annotations the method secured don't blocks a user haven't authorization to execute this methos.Code:<application> <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> </application>
Please, someone help me!!
Thanks!


Reply With Quote