Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 3.1.0.M1
    • Component/s: Taglibs
    • Labels:
      None
    • Environment:
      JSF 1.2

      Description

      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.

      1. AuthorizeTag.java
        11 kB
        Peter Centgraf
      2. AuthorizeTag.java
        4 kB
        Peter Centgraf

        Activity

        Hide
        Peter Centgraf added a comment -

        Updated to include support for legacy ifAllGranted etc. attributes. Restored exception messages from JSP implementation.

        Show
        Peter Centgraf added a comment - Updated to include support for legacy ifAllGranted etc. attributes. Restored exception messages from JSP implementation.
        Hide
        Luke Taylor added a comment -

        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.

        Show
        Luke Taylor added a comment - 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.
        Hide
        Luke Taylor added a comment -

        For reference, the project is hosted at: http://code.google.com/p/spring-security-facelets-taglib/

        Show
        Luke Taylor added a comment - For reference, the project is hosted at: http://code.google.com/p/spring-security-facelets-taglib/

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Peter Centgraf
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: