Announcement Announcement Module
Collapse
No announcement yet.
xml namespace Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • xml namespace

    Hi,

    in my application I'm using facelets and now I would like to include the Spring Security taglib something like this:

    xmlns:authz="http://www.springframework.org/security/tags/authz"

    I've tried it and for example with <authz:authorize...> but the tag isn' resolved. Any suggestions/solutions?


    Greetings Florian

  • #2
    No hints or suggestions? Maybe it is possible that I write the required mapping myself?
    Any clue is welcome.


    Greetings Florian

    Comment


    • #3
      I have the same question

      There is nothing in documentation and in examples about using security components with JSF . Is such feature provided?

      Comment


      • #4
        This link may help.In the comments its got an example facelets taglib config
        http://www.jroller.com/cagataycivici...onents_hit_the

        Comment


        • #5
          Originally posted by darran2008 View Post
          This link may help.In the comments its got an example facelets taglib config
          http://www.jroller.com/cagataycivici...onents_hit_the
          Thanks for reply, darran

          I've already found that link. Those components really work, but in order to work with Spring Security 2.0 I needed to change import in class AcegiJsfUtils
          from org.acegisecurity.* to org.springframework.security

          Also I added to acegijsf.jar file

          META-INF/acegijsf.taglib.xml
          Code:
          <?xml version="1.0"?>
          <!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
              "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
          <facelet-taglib>
              <namespace>http://sourceforge.net/projects/jsf-comp/acegijsf</namespace>
              <tag>
                  <tag-name>authorize</tag-name>
                  <component>
                      <component-type>net.sf.jsfcomp.acegijsf.Authorize</component-type>
                  </component>
              </tag>
              <tag>
                  <tag-name>authentication</tag-name>
                  <component>
                      <component-type>net.sf.jsfcomp.acegijsf.Authentication</component-type>
                  </component>
              </tag>
          </facelet-taglib>

          Comment

          Working...
          X