Results 1 to 1 of 1
  1. #1
    andree2014 is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default spring-faces + probleme with url parameters

    Hello

    i want to explor the spring security taglibs in my xhtml page so for that i do this steps:

    1) create a springsecurity.taglib.xml:

    <?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://www.springframework.org/security/tags</namespace>
    <tag>
    <tag-name>authorize</tag-name>
    <handler-class>org.springframework.faces.security.FaceletsA uthorizeTagHandler</handler-class>
    </tag>
    <function>
    <function-name>areAllGranted</function-name>
    <function-class>org.springframework.faces.security.FaceletsA uthorizeTagUtils</function-class>
    <function-signature>boolean areAllGranted(java.lang.String)</function-signature>
    </function>
    <function>
    <function-name>areAnyGranted</function-name>
    <function-class>org.springframework.faces.security.FaceletsA uthorizeTagUtils</function-class>
    <function-signature>boolean areAnyGranted(java.lang.String)</function-signature>
    </function>
    <function>
    <function-name>areNotGranted</function-name>
    <function-class>org.springframework.faces.security.FaceletsA uthorizeTagUtils</function-class>
    <function-signature>boolean areNotGranted(java.lang.String)</function-signature>
    </function>
    <function>
    <function-name>isAllowed</function-name>
    <function-class>org.springframework.faces.security.FaceletsA uthorizeTagUtils</function-class>
    <function-signature>boolean isAllowed(java.lang.String, java.lang.String)</function-signature>
    </function>
    </facelet-taglib>

    2) Register the above file in web.xml

    <context-param>
    <param-name>javax.faces.FACELETS_LIBRARIES</param-name>
    <param-value>/WEB-INF/springsecurity.taglib.xml</param-value>
    </context-param>

    when i deploy my project I get an error that requires me to add a spring-faces to solve it, but i get a new problem that the jsf url parametred no longer works(like http://localhost:8080/projet/etudiant.jsf?idEtudiant=2 ). before adding the spring-faces dependency it work's fine, the problem begin when i add this dependency of spring-faces


    have you any idea about this probleme and thank you
    Last edited by andree2014; 05-24-2014 at 02:49 PM.

Similar Threads

  1. table model probléme !
    By guns65 in forum JDBC
    Replies: 1
    Last Post: 01-05-2013, 10:10 AM
  2. Replies: 1
    Last Post: 05-31-2012, 08:31 AM
  3. Replies: 10
    Last Post: 01-24-2012, 11:02 PM
  4. Replies: 5
    Last Post: 11-21-2010, 03:08 PM
  5. probleme with my code
    By yacin87 in forum Networking
    Replies: 0
    Last Post: 04-13-2010, 01:17 AM

Posting Permissions

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