Results 1 to 5 of 5

Thread: xml namespace

  1. #1
    Join Date
    Mar 2008
    Posts
    24

    Default 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. #2
    Join Date
    Mar 2008
    Posts
    24

    Default

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


    Greetings Florian

  3. #3
    Join Date
    Feb 2008
    Location
    Kharkov, Ukraine
    Posts
    64

    Default I have the same question

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

  4. #4
    Join Date
    Jan 2008
    Posts
    12

    Default

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

  5. #5
    Join Date
    Feb 2008
    Location
    Kharkov, Ukraine
    Posts
    64

    Default

    Quote 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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •