Peter Centgraf (Migrated from SEC-1512) said:
The "authorize" tag provided by Spring Security only works with JSP, not with Facelets. I have adapted the logic to fit into the Facelets framework.
Note that this has been tested with JSF 1.2, but not with JSF 2.0. It may need to be adapted to that API. For user convenience, a taglib.xml file should also be added to the META-INF dir of whichever jar this class ends up in.
Peter Centgraf said:
Updated to include support for legacy ifAllGranted etc. attributes. Restored exception messages from JSP implementation.
Luke Taylor said:
Thanks for the contribution. However, there's already an external taglib project, which I believe supports JSF 1.2 and JSF 2.0 and which people are already using successfuly, so I'd prefer not to add support for additional view technologies to the main project at the moment.
For reference, the project is hosted at: http://code.google.com/p/spring-security-facelets-taglib/